aboutsummaryrefslogtreecommitdiff
path: root/libiberty/argv.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-04-14 02:22:18 +0000
committerDJ Delorie <dj@redhat.com>2005-04-14 02:22:18 +0000
commitab70e2a569bcef40653fc3cad7ddf64d24256433 (patch)
tree1a98ac2f8f2ddf5525b689837630265b8f50379f /libiberty/argv.c
parent8699aa54a266e568d5c2c59762d64edd96f11211 (diff)
downloadgdb-ab70e2a569bcef40653fc3cad7ddf64d24256433.zip
gdb-ab70e2a569bcef40653fc3cad7ddf64d24256433.tar.gz
gdb-ab70e2a569bcef40653fc3cad7ddf64d24256433.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/argv.c')
-rw-r--r--libiberty/argv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/argv.c b/libiberty/argv.c
index 7650205..ad4c9a7 100644
--- a/libiberty/argv.c
+++ b/libiberty/argv.c
@@ -77,7 +77,7 @@ dupargv (char **argv)
for (argc = 0; argv[argc] != NULL; argc++)
{
int len = strlen (argv[argc]);
- copy[argc] = malloc (sizeof (char *) * (len + 1));
+ copy[argc] = (char *) malloc (len + 1);
if (copy[argc] == NULL)
{
freeargv (copy);