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

Diff for /src/usr.bin/rcs/xmalloc.c between version 1.7 and 1.8

version 1.7, 2015/02/05 12:59:58 version 1.8, 2015/03/26 15:17:30
Line 60 
Line 60 
   
         new_ptr = reallocarray(ptr, nmemb, size);          new_ptr = reallocarray(ptr, nmemb, size);
         if (new_ptr == NULL)          if (new_ptr == NULL)
                 errx(1, "xrealloc: out of memory (new_size %zu bytes)",                  errx(1, "xreallocarray: out of memory (new_size %zu bytes)",
                     nmemb * size);                      nmemb * size);
         return new_ptr;          return new_ptr;
 }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8