From 0553732952fc902d44877c24d1b47466857806bb Mon Sep 17 00:00:00 2001 From: John Ellson Date: Fri, 10 Jul 2015 16:05:25 -0400 Subject: [PATCH] check for trailing " in ppDirective befora accepting string as a filename --- lib/cgraph/scan.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cgraph/scan.l b/lib/cgraph/scan.l index 6aef10bcd..db4c3bab6 100644 --- a/lib/cgraph/scan.l +++ b/lib/cgraph/scan.l @@ -117,7 +117,7 @@ static void ppDirective (void) char* p = s + cnt; char* e = p; while (*e && (*e != '"')) e++; - if (e != p) { + if (e != p && *e == '"') { *e = '\0'; storeFileName (p, e-p); } -- 2.40.0