commit a73e9f76d9fd0691add07e42337884ee4a57cbef
parent 8725d3f744980d3c1998a2fb7bbddb8daf640842
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sun, 19 Jul 2015 09:46:56 +0200
Add a space after the expansions of __FILE__ and __LINE__
This is needed in order to avoid concatenate with other
text in the input.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cc1/cpp.c b/cc1/cpp.c
@@ -196,11 +196,11 @@ expand(char *begin, Symbol *sym)
macroname = sym->name;
if (sym == symfile) {
- elen = sprintf(buffer, "\"%s\"", input->fname);
+ elen = sprintf(buffer, "\"%s\" ", input->fname);
goto substitute;
}
if (sym == symline) {
- elen = sprintf(buffer, "%d", input->nline);
+ elen = sprintf(buffer, "%d ", input->nline);
goto substitute;
}