From 34c68ba800632ccca564f6bdcb186e32886684c1 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Mon, 20 Jun 2011 16:57:14 +0200 Subject: [PATCH] Don't go too far ahead if (..){ is OK. The previous code skipped over the curly brace, assuming that it was there... the code to check for syntax errors assumed that the curly brace was not skipped over. This change fixes that conflict --- src/main/conffile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/conffile.c b/src/main/conffile.c index 782208a..1e77b1a 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -1651,7 +1651,7 @@ static int cf_section_read(const char *filename, int *lineno, FILE *fp, buf2[0] = '('; memcpy(buf2 + 1, ptr, end - ptr); buf2[end - ptr + 1] = '\0'; - ptr = end + 1; + ptr = end; t2 = T_BARE_WORD; if (gettoken(&ptr, buf3, sizeof(buf3)) != T_LCBRACE) { -- 2.1.4