]> granicus.if.org Git - graphviz/commitdiff
check for trailing " in ppDirective befora accepting string as a filename
authorJohn Ellson <ellson@research.att.com>
Fri, 10 Jul 2015 20:05:25 +0000 (16:05 -0400)
committerJohn Ellson <ellson@research.att.com>
Fri, 10 Jul 2015 20:05:25 +0000 (16:05 -0400)
lib/cgraph/scan.l

index 6aef10bcdc5b3619bb23a310b037dff7190c980c..db4c3bab67d8f9d0eaed0f8f6a2dd164030c6cd1 100644 (file)
@@ -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);
            }