summaryrefslogtreecommitdiff
path: root/libiberty/sort.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-05-24 21:01:33 +0000
committerDJ Delorie <dj@redhat.com>2005-05-24 21:01:33 +0000
commitabf6a75b428517d9caaf9155212b0b10e0379a99 (patch)
tree3476694dba1d2c731deb2a131b0d8d6c5dcb0cd3 /libiberty/sort.c
parentf127898a4db12540b9898e25777c6c3725d119bf (diff)
downloadbinutils-gdb-abf6a75b428517d9caaf9155212b0b10e0379a99.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/sort.c')
-rw-r--r--libiberty/sort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/sort.c b/libiberty/sort.c
index a4fffefa349..3738dd733e5 100644
--- a/libiberty/sort.c
+++ b/libiberty/sort.c
@@ -155,8 +155,8 @@ int main (int argc, char **argv)
else
k = 10;
- pointers = xmalloc (k * sizeof (void *));
- work = xmalloc (k * sizeof (void *));
+ pointers = XNEWVEC (void*, k);
+ work = XNEWVEC (void*, k);
for (i = 0; i < k; ++i)
{