Commit 2ff43a33 by Doug Evans

(MSDOS pexecute): Call xmalloc, not malloc.

From-SVN: r12119
parent 6a3f0e64
......@@ -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);
......
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