aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-11-06 02:50:36 +0300
committerseyko <seyko2@gmail.com>2015-11-06 02:50:36 +0300
commit8fc9c79705162627cc68b5467b35550817d97100 (patch)
tree53beb6d34206d2459be2b8a16c7f02b0283324e4 /tccpp.c
parent7cb921a44b979ae3fa280a1b0f567300667af903 (diff)
downloadtinycc-8fc9c79705162627cc68b5467b35550817d97100.tar.gz
tinycc-8fc9c79705162627cc68b5467b35550817d97100.tar.bz2
TOK_INCLUDE: fix for the "normalize inc dirs"
A case for the absolute path: prevent an error after openening
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccpp.c b/tccpp.c
index 900781d..77fedb4 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -1639,7 +1639,7 @@ ST_FUNC void preprocess(int is_bof)
if (!IS_ABSPATH(buf))
continue;
buf1[0] = 0;
- i = n; /* force end loop */
+ i = n - 1; /* force end loop */
} else if (i == -1) {
/* search in current dir if "header.h" */