aboutsummaryrefslogtreecommitdiff
path: root/libiberty/argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/argv.c')
-rw-r--r--libiberty/argv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libiberty/argv.c b/libiberty/argv.c
index 71f164a..79241b6 100644
--- a/libiberty/argv.c
+++ b/libiberty/argv.c
@@ -365,9 +365,10 @@ expandargv (argcp, argvp)
{
*argvp = dupargv (*argvp);
if (!*argvp)
- /* We do not know exactly many bytes dupargv tried to
- allocate, so make a guess. */
- xmalloc_failed (*argcp * 32);
+ {
+ fputs ("\nout of memory\n", stderr);
+ xexit (1);
+ }
}
/* Count the number of arguments. */
file_argc = 0;