aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tccpp.c b/tccpp.c
index 720115d..1f3b083 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -1792,7 +1792,8 @@ ST_FUNC void preprocess(int is_bof)
/* search in file's dir if "header.h" */
if (c != '\"')
continue;
- path = file->filename;
+ /* https://savannah.nongnu.org/bugs/index.php?50847 */
+ path = file->filename2;
pstrncpy(buf1, path, tcc_basename(path) - path);
} else {