[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.8.2.3 and 1.8.2.4

version 1.8.2.3, 2001/03/21 19:46:32 version 1.8.2.4, 2001/05/07 21:09:39
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.8.2.3  
changed lines
  Added in v.1.8.2.4