From 8fc9c79705162627cc68b5467b35550817d97100 Mon Sep 17 00:00:00 2001 From: seyko Date: Fri, 6 Nov 2015 02:50:36 +0300 Subject: [PATCH] TOK_INCLUDE: fix for the "normalize inc dirs" A case for the absolute path: prevent an error after openening --- tccpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" */