From: ellson Date: Tue, 3 Nov 2009 19:17:10 +0000 (+0000) Subject: remove redundant sprintf and associated buf. Seems to fix a 64bit issue. X-Git-Tag: LAST_LIBGRAPH~32^2~1604 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bbd9d9fcfa9336a096d4653a4b6863e08f27555;p=graphviz remove redundant sprintf and associated buf. Seems to fix a 64bit issue. --- diff --git a/cmd/smyrna/gui/topviewsettings.c b/cmd/smyrna/gui/topviewsettings.c index e51c0bcb9..1eb98d2d6 100644 --- a/cmd/smyrna/gui/topviewsettings.c +++ b/cmd/smyrna/gui/topviewsettings.c @@ -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)