]> granicus.if.org Git - graphviz/commitdiff
nodename focus must be in single quotes
authorellson <devnull@localhost>
Fri, 16 Nov 2007 22:22:56 +0000 (22:22 +0000)
committerellson <devnull@localhost>
Fri, 16 Nov 2007 22:22:56 +0000 (22:22 +0000)
lib/common/emit.c

index c9c6d5623de8456f247d3575e13b1fe16710a638..7e90bb7dbbb4b2be036dc3a59cb3218475b8c236 100644 (file)
@@ -1972,7 +1972,7 @@ static void init_job_viewport(GVJ_t * job, graph_t * g)
     /* user can override */
     if ((str = agget(g, "viewport"))) {
         nodename = malloc(strlen(str)+1);
-       rv = sscanf(str, "%lf,%lf,%lf,%[^\"]", &X, &Y, &Z, nodename);
+       rv = sscanf(str, "%lf,%lf,%lf,\'%[^\']\'", &X, &Y, &Z, nodename);
        if (rv == 4) {
            n = agfindnode(g->root, nodename);
            if (n) {