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

Diff for /src/usr.bin/systat/cache.c between version 1.4 and 1.5

version 1.4, 2011/11/29 10:17:52 version 1.5, 2014/10/08 04:10:04
Line 68 
Line 68 
         if (max == 0) {          if (max == 0) {
                 sc_store = NULL;                  sc_store = NULL;
         } else {          } else {
                 sc_store = malloc(max * sizeof(struct sc_ent));                  sc_store = reallocarray(NULL, max, sizeof(struct sc_ent));
                 if (sc_store == NULL)                  if (sc_store == NULL)
                         return (1);                          return (1);
         }          }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5