]> granicus.if.org Git - graphviz/commitdiff
remove redundant sprintf and associated buf. Seems to fix a 64bit issue.
authorellson <devnull@localhost>
Tue, 3 Nov 2009 19:17:10 +0000 (19:17 +0000)
committerellson <devnull@localhost>
Tue, 3 Nov 2009 19:17:10 +0000 (19:17 +0000)
cmd/smyrna/gui/topviewsettings.c

index e51c0bcb9266f4ca21bc7b84f57aee2564c9066c..1eb98d2d6552200614632b82075809082d0ad626 100644 (file)
@@ -86,13 +86,11 @@ static int get_color_button_widget_to_attribute(char *attribute,
 static int get_text_widget_to_attribute(char *attribute, char *widget_name,
                                        Agraph_t * g)
 {
-    char buf[512];
     if (strlen(attribute) > 512)
        return 0;
-    sprintf(buf, "%s",
+    agattr(g, AGRAPH, attribute, 
            gtk_entry_get_text((GtkEntry *)
                               glade_xml_get_widget(xml, widget_name)));
-    agattr(g, AGRAPH, attribute, buf);
     return 1;
 }
 static int set_text_widget(char *attribute, char *widget_name)