]> granicus.if.org Git - graphviz/commitdiff
Fix bug 1035
authorerg <devnull@localhost>
Tue, 10 Oct 2006 19:46:43 +0000 (19:46 +0000)
committererg <devnull@localhost>
Tue, 10 Oct 2006 19:46:43 +0000 (19:46 +0000)
lib/common/htmltable.c

index 9e8d26c5edc61f5945c6600adf9b8180dded5f9c..9093c1a60d339a1851e6dd75ccdbe91de0449268 100644 (file)
@@ -1586,7 +1586,7 @@ int make_html_label(graph_t *g, textlabel_t * lp, void *obj)
        unsigned char buf[SMALLBUF];
        agxbinit(&xb, SMALLBUF, buf);
        lp->html = FALSE;
-       lp->text = nameOf(obj, &xb);
+       lp->text = strdup(nameOf(obj, &xb));
        size_label(env.g, lp);
        agxbfree(&xb);
        return rv;