diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-09-04 20:25:06 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-09-04 20:25:06 +0000 |
commit | 8e7e53fb359922cdab10392044e3ab8dd863642b (patch) | |
tree | a56055556b82584b7c791c675078ceb42d2a0973 /gtk/proto_draw.c | |
parent | 5104cf0026036293e5044afd705c5d64d6e453a2 (diff) |
"g_string_sprintfa()" might be deprecated in GLib 2.x, but it's all GLib
1.2[.x] has, and we support GLib 1.2[.x] - "g_string_append_printf()" is
just the new name for "g_string_sprintfa()", and you can still use
"g_string_sprintfa()" in GLib 2.x, so use that instead.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11900 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/proto_draw.c')
-rw-r--r-- | gtk/proto_draw.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/proto_draw.c b/gtk/proto_draw.c index f824483c83..3bc6d03848 100644 --- a/gtk/proto_draw.c +++ b/gtk/proto_draw.c @@ -820,21 +820,21 @@ copy_hex_cb(GtkWidget * w _U_, gpointer data _U_) data_p = get_byte_view_data_and_length(GTK_WIDGET(bv), &len); - g_string_append_printf(byte_str,"%04x ",i); /* Offset 0000 */ + g_string_sprintfa(byte_str,"%04x ",i); /* Offset 0000 */ for (i=0; i<len; i++){ - g_string_append_printf(ASCII_representation,"%c",isprint(*data_p) ? *data_p : '.'); - g_string_append_printf(byte_str," %02x",*data_p++); + g_string_sprintfa(ASCII_representation,"%c",isprint(*data_p) ? *data_p : '.'); + g_string_sprintfa(byte_str," %02x",*data_p++); if ((i+1)%16==0 && i!=0){ - g_string_append_printf(byte_str," %s\n%04x ",ASCII_representation->str,i+1); + g_string_sprintfa(byte_str," %s\n%04x ",ASCII_representation->str,i+1); g_string_assign (ASCII_representation,""); } } if(ASCII_representation->len){ for (i=ASCII_representation->len; i<16; i++){ - g_string_append_printf(byte_str," "); + g_string_sprintfa(byte_str," "); } - g_string_append_printf(byte_str," %s\n",ASCII_representation->str); + g_string_sprintfa(byte_str," %s\n",ASCII_representation->str); } /* Now that we have the byte data, copy it into the default clipboard */ copy_to_clipboard(byte_str); |