diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-09-27 15:21:13 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2005-09-27 15:21:13 +0000 |
commit | ef0b354c32e7c16555f803999a9ffc175d66a151 (patch) | |
tree | 9d058a371706a7a55e03e98a6ea41f25e72a4956 /libiberty/argv.c | |
parent | 48b3064242c8b02350f33dc12fe66045f9355fa6 (diff) | |
download | binutils-redhat-ef0b354c32e7c16555f803999a9ffc175d66a151.tar.gz |
* argv.c (expandargv): Do not use xmalloc_failed.
Diffstat (limited to 'libiberty/argv.c')
-rw-r--r-- | libiberty/argv.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libiberty/argv.c b/libiberty/argv.c index 71f164acf7..79241b6dce 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; |