OSDN Git Service

(MSDOS pexecute): Call xmalloc, not malloc.
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 May 1996 00:05:23 +0000 (00:05 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 May 1996 00:05:23 +0000 (00:05 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12119 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/gcc.c

index 9e9304b..7c6de62 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1906,7 +1906,7 @@ pexecute (search_flag, program, argv, not_last)
   FILE *argfile;
   int i, el = search_flag ? 0 : 4;
 
-  scmd = (char *)malloc (strlen (program) + strlen (temp_filename) + 6 + el);
+  scmd = (char *) xmalloc (strlen (program) + strlen (temp_filename) + 6 + el);
   rf = scmd + strlen(program) + 2 + el;
   sprintf (scmd, "%s%s @%s.gp", program,
           (search_flag ? "" : ".exe"), temp_filename);