Changeset 2560


Ignore:
Timestamp:
Jul 17, 2008, 1:24:06 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • bug-memory.c: fix the SIGSEGV unit test.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/test/bug-memory.c

    r2545 r2560  
    2424    while((ch = getc(stdin)) != EOF)
    2525    {
    26         char *tmp = malloc(ch * 1024 * 1024);
     26        char *tmp = malloc(1 + ch * 1024 * 1024);
    2727        for(i = 0; i < 1024; i++)
    2828            tmp[ch * 1024 * i] = i;
Note: See TracChangeset for help on using the changeset viewer.