From 8bbd9d9fcfa9336a096d4653a4b6863e08f27555 Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 3 Nov 2009 19:17:10 +0000 Subject: [PATCH] remove redundant sprintf and associated buf. Seems to fix a 64bit issue. --- cmd/smyrna/gui/topviewsettings.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) -- 2.40.0