diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-09-27 15:21:41 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-09-27 15:21:41 +0000 |
commit | affbb54ac4dd5a14dcb3dec6a6faa4c407838879 (patch) | |
tree | 77a3cf115ec759d876696767e945bdbefb38facd /libiberty | |
parent | f6602816951b32335522db2c89376ee4d0b5f214 (diff) | |
download | gcc-affbb54ac4dd5a14dcb3dec6a6faa4c407838879.zip gcc-affbb54ac4dd5a14dcb3dec6a6faa4c407838879.tar.gz gcc-affbb54ac4dd5a14dcb3dec6a6faa4c407838879.tar.bz2 |
* argv.c (expandargv): Do not use xmalloc_failed.
From-SVN: r104695
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/argv.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index dcd2450..5aa2174 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2005-09-27 Mark Mitchell <mark@codesourcery.com> + + * argv.c (expandargv): Do not use xmalloc_failed. + 2005-09-26 Mark Mitchell <mark@codesourcery.com> * argv.c (safe-ctype.h): Include it. 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; |