Return to pigs.c CVS log | Up to [local] / src / usr.bin / systat |
version 1.27, 2014/09/15 19:08:21 | version 1.28, 2014/10/08 04:10:04 | ||
---|---|---|---|
|
|
||
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; |