* bug-memory.c: fix the SIGSEGV unit test.

This commit is contained in:
Sam Hocevar 2008-07-16 23:24:06 +00:00 committed by sam
parent 80d9efbd29
commit 0a902ca687

View File

@ -23,7 +23,7 @@ int main(void)
while((ch = getc(stdin)) != EOF)
{
char *tmp = malloc(ch * 1024 * 1024);
char *tmp = malloc(1 + ch * 1024 * 1024);
for(i = 0; i < 1024; i++)
tmp[ch * 1024 * i] = i;
}