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

From-SVN: r29053
This commit is contained in:
Marc Espie 1999-09-02 07:37:50 +00:00 committed by Jeff Law
parent 34640c8750
commit 19e28e2aee
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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,