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

Diff for /src/usr.bin/systat/pigs.c between version 1.27 and 1.28

version 1.27, 2014/09/15 19:08:21 version 1.28, 2014/10/08 04:10:04
Line 166 
Line 166 
   
         if (nproc > onproc) {          if (nproc > onproc) {
                 int *p;                  int *p;
                 p = realloc(pb_indices, (nproc + 1) * sizeof(int));                  p = reallocarray(pb_indices, nproc + 1, sizeof(int));
                 if (p == NULL) {                  if (p == NULL) {
                         error("Out of Memory!");                          error("Out of Memory!");
                         return 1;                          return 1;

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28