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

Diff for /src/usr.bin/rs/rs.c between version 1.23 and 1.24

version 1.23, 2013/11/15 15:47:53 version 1.24, 2014/10/08 04:07:24
Line 340 
Line 340 
         int newsize;          int newsize;
   
         newsize = allocsize * 2;          newsize = allocsize * 2;
         p = realloc(elem, newsize * sizeof(char *));          p = reallocarray(elem, newsize, sizeof(char *));
         if (p == NULL)          if (p == NULL)
                 err(1, "no memory");                  err(1, "no memory");
   

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24