Commit affbb54a by Mark Mitchell Committed by Mark Mitchell

* argv.c (expandargv): Do not use xmalloc_failed.

From-SVN: r104695
parent f6602816
2005-09-27 Mark Mitchell <mark@codesourcery.com>
* argv.c (expandargv): Do not use xmalloc_failed.
2005-09-26 Mark Mitchell <mark@codesourcery.com> 2005-09-26 Mark Mitchell <mark@codesourcery.com>
* argv.c (safe-ctype.h): Include it. * argv.c (safe-ctype.h): Include it.
......
...@@ -365,9 +365,10 @@ expandargv (argcp, argvp) ...@@ -365,9 +365,10 @@ expandargv (argcp, argvp)
{ {
*argvp = dupargv (*argvp); *argvp = dupargv (*argvp);
if (!*argvp) if (!*argvp)
/* We do not know exactly many bytes dupargv tried to {
allocate, so make a guess. */ fputs ("\nout of memory\n", stderr);
xmalloc_failed (*argcp * 32); xexit (1);
}
} }
/* Count the number of arguments. */ /* Count the number of arguments. */
file_argc = 0; file_argc = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment