diff --git a/src/cmd/cc/lex.c b/src/cmd/cc/lex.c index e3a8e440d88..a1de21cd82a 100644 --- a/src/cmd/cc/lex.c +++ b/src/cmd/cc/lex.c @@ -244,6 +244,7 @@ compile(char *file, char **defs, int ndef) errorexit(); } Binit(&outbuf, c, OWRITE); + outfile = strdup(outfile); } newio(); first = 0;