From: John Ellson Date: Fri, 10 Jul 2015 20:05:25 +0000 (-0400) Subject: check for trailing " in ppDirective befora accepting string as a filename X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~109^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0553732952fc902d44877c24d1b47466857806bb;p=graphviz check for trailing " in ppDirective befora accepting string as a filename --- 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); }