[BACK]Return to xmalloc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/xmalloc.c between version 1.3 and 1.4

version 1.3, 2005/12/19 18:21:31 version 1.4, 2005/12/30 17:51:01
Line 28 
Line 28 
                 fatal("xmalloc: zero size");                  fatal("xmalloc: zero size");
         ptr = malloc(size);          ptr = malloc(size);
         if (ptr == NULL)          if (ptr == NULL)
                 fatal("xmalloc: out of memory (allocating %lu bytes)", (u_long) size);                  fatal("xmalloc: out of memory (allocating %lu bytes)",
                       (u_long) size);
         return ptr;          return ptr;
 }  }
   
Line 44 
Line 45 
         else          else
                 new_ptr = realloc(ptr, new_size);                  new_ptr = realloc(ptr, new_size);
         if (new_ptr == NULL)          if (new_ptr == NULL)
                 fatal("xrealloc: out of memory (new_size %lu bytes)", (u_long) new_size);                  fatal("xrealloc: out of memory (new_size %lu bytes)",
                       (u_long) new_size);
         return new_ptr;          return new_ptr;
 }  }
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4