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

Diff for /src/usr.bin/ssh/xmalloc.c between version 1.14 and 1.15

version 1.14, 2001/02/07 18:04:50 version 1.15, 2001/04/16 08:05:34
Line 39 
Line 39 
         if (new_size == 0)          if (new_size == 0)
                 fatal("xrealloc: zero size");                  fatal("xrealloc: zero size");
         if (ptr == NULL)          if (ptr == NULL)
                 fatal("xrealloc: NULL pointer given as argument");                  new_ptr = malloc(new_size);
         new_ptr = realloc(ptr, new_size);          else
                   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.14  
changed lines
  Added in v.1.15