Commit 19e28e2a by Marc Espie Committed by Jeff Law

* pexecute.c (pexecute): Fill in temp_base when needed.

From-SVN: r29053
parent 34640c87
Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
* pexecute.c (pexecute): Fill in temp_base when needed.
1999-08-31 Richard Henderson <rth@cygnus.com>
* getpwd.c: Check HAVE_GETCWD before defining it away.
......
......@@ -156,6 +156,8 @@ pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags)
FILE *argfile;
int i, el = flags & PEXECUTE_SEARCH ? 4 : 0;
if (temp_base == 0)
temp_base = choose_temp_base ();
scmd = (char *) xmalloc (strlen (program) + strlen (temp_base) + 6 + el);
rf = scmd + strlen(program) + 2 + el;
sprintf (scmd, "%s%s @%s.gp", program,
......
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