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

Diff for /src/usr.bin/systat/pool.c between version 1.8 and 1.9

version 1.8, 2014/08/14 08:10:30 version 1.9, 2014/10/08 04:10:04
Line 218 
Line 218 
         }          }
   
         if (np > num_pools || pools == NULL) {          if (np > num_pools || pools == NULL) {
                 struct pool_info *p = realloc(pools, sizeof(*pools) * np);                  struct pool_info *p = reallocarray(pools, np, sizeof(*pools));
                 if (p == NULL) {                  if (p == NULL) {
                         error("realloc: %s", strerror(errno));                          error("realloc: %s", strerror(errno));
                         return (-1);                          return (-1);

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