aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/cc/pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/cc/pp.c')
-rw-r--r--sys/cmd/cc/pp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cmd/cc/pp.c b/sys/cmd/cc/pp.c
index 4d7c643..57c3501 100644
--- a/sys/cmd/cc/pp.c
+++ b/sys/cmd/cc/pp.c
@@ -882,6 +882,7 @@ ppinc(Lexer *lx)
strcpy(lx->buf, C.inc.dir[i]);
strcat(lx->buf, "/");
+
if (strcmp(lx->buf, "./") == 0)
lx->buf[0] = '\0';
strcat(lx->buf, s);