aboutsummaryrefslogtreecommitdiff
path: root/libiberty/vasprintf.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2002-09-20 13:45:20 +0000
committerDJ Delorie <dj@redhat.com>2002-09-20 13:45:20 +0000
commit585cc78f65f55dd5834911fbbe21b654c52f7bee (patch)
treea43a631b29706b85c9ab12c6c91181d2e7e07671 /libiberty/vasprintf.c
parent6d305052679525c19163606e9968d8c67b2ca4f2 (diff)
downloadgdb-585cc78f65f55dd5834911fbbe21b654c52f7bee.zip
gdb-585cc78f65f55dd5834911fbbe21b654c52f7bee.tar.gz
gdb-585cc78f65f55dd5834911fbbe21b654c52f7bee.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/vasprintf.c')
-rw-r--r--libiberty/vasprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/vasprintf.c b/libiberty/vasprintf.c
index d438225..aa20e5b 100644
--- a/libiberty/vasprintf.c
+++ b/libiberty/vasprintf.c
@@ -138,7 +138,7 @@ int_vasprintf (result, format, args)
#ifdef TEST
global_total_width = total_width;
#endif
- *result = malloc (total_width);
+ *result = (char *) malloc (total_width);
if (*result != NULL)
return vsprintf (*result, format, *args);
else