diff options
Diffstat (limited to 'libiberty/pexecute.c')
-rw-r--r-- | libiberty/pexecute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/pexecute.c b/libiberty/pexecute.c index f486252..60a280b 100644 --- a/libiberty/pexecute.c +++ b/libiberty/pexecute.c @@ -99,7 +99,7 @@ pwait (int pid, int *status, int flags ATTRIBUTE_UNUSED) { int *vector; - vector = xmalloc (idx * sizeof (int)); + vector = XNEWVEC (int, idx); if (!pex_get_status (pex, idx, vector)) return -1; *status = vector[pid]; |