mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
fix a missing dstring_adjust call (I guess I need to make a dsprintf:)
This commit is contained in:
parent
de60a142ef
commit
d3870a1ec4
1 changed files with 5 additions and 0 deletions
|
@ -1046,6 +1046,7 @@ preprocess_file (const char *filename)
|
|||
|
||||
tempname->size = strlen (temp1) + 1
|
||||
+ strlen (temp2 ? temp2 + 1 : this_program) + 1;
|
||||
dstring_adjust (tempname);
|
||||
sprintf (tempname->str, "%s%c%sXXXXXX", temp1,
|
||||
PATH_SEPARATOR, temp2 ? temp2 + 1 : this_program);
|
||||
}
|
||||
|
@ -1079,6 +1080,10 @@ preprocess_file (const char *filename)
|
|||
}
|
||||
if (!pid) {
|
||||
// we're a child, check for abuse
|
||||
//const char **a;
|
||||
//for (a = cpp_argv; *a; a++)
|
||||
// printf ("%s ", *a);
|
||||
//puts("");
|
||||
execvp (cpp_argv[0], (char **)cpp_argv);
|
||||
fprintf (stderr, "Child shouldn't reach here\n");
|
||||
exit (1);
|
||||
|
|
Loading…
Reference in a new issue