From: ellson Date: Fri, 16 Nov 2007 22:22:56 +0000 (+0000) Subject: nodename focus must be in single quotes X-Git-Tag: LAST_LIBGRAPH~32^2~5017 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c69327f4e8c2eda38c393a8ddf9cc1bce1f9227a;p=graphviz nodename focus must be in single quotes --- diff --git a/lib/common/emit.c b/lib/common/emit.c index c9c6d5623..7e90bb7db 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -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) {