OSDN Git Service

* regrename.c (copy_value): Don't replace fixed or global
[pf3gnuchains/gcc-fork.git] / libiberty / pex-djgpp.c
index b452f46..6e58e3f 100644 (file)
@@ -257,7 +257,7 @@ pex_djgpp_exec_child (struct pex_obj *obj, int flags, const char *executable,
      is the number of children which have executed before this
      one.  */
   statuses = (int *) obj->sysdep;
-  statuses = xrealloc (statuses, (obj->count + 1) * sizeof (int));
+  statuses = XRESIZEVEC (int, statuses, obj->count + 1);
   statuses[obj->count] = status;
   obj->sysdep = (void *) statuses;