more memory errors (valgrind)

This commit is contained in:
rsc 2007-03-26 15:02:15 +00:00
parent 96f54e3fff
commit 40402738da
3 changed files with 3 additions and 1 deletions

View file

@ -26,6 +26,7 @@ morecode(void)
if(codebuf==0)
panic("Can't realloc %d bytes in morecode!",
ncode*sizeof codebuf[0]);
memset(codebuf+ncode-100, 0, 100*sizeof codebuf[0]);
return 0;
}