g_string_sprintf --> g_string_printf and g_string_sprintfa --> g_string_append_printf
[obnox/wireshark/wip.git] / plugins / mate / mate_setup.c
index c496aea40d68d6138acc2afbd86cae80046f4059..4d999f8f399bd7b1bdfd5038745b055c6c56b1e5 100644 (file)
@@ -203,7 +203,7 @@ extern gchar* add_ranges(gchar* range,GPtrArray* range_ptr_arr) {
                                hfidp = g_malloc(sizeof(int));
                                *hfidp = hfi->id;
                                g_ptr_array_add(range_ptr_arr,(gpointer)hfidp);
-                               g_string_sprintfa(matecfg->fields_filter, "||%s",ranges[i]);
+                               g_string_append_printf(matecfg->fields_filter, "||%s",ranges[i]);
                        } else {
                                g_strfreev(ranges);
                                return g_strdup_printf("no such proto: '%s'",ranges[i]);;
@@ -249,7 +249,7 @@ static void analyze_pdu_hfids(gpointer k, gpointer v, gpointer p) {
        mate_cfg_pdu* cfg = p;
        new_attr_hfri(cfg->name,cfg->my_hfids,(gchar*) v);
 
-       g_string_sprintfa(matecfg->fields_filter,"||%s",my_protoname(*(int*)k));
+       g_string_append_printf(matecfg->fields_filter,"||%s",my_protoname(*(int*)k));
 }
 
 static void analyze_transform_hfrs(gchar* name, GPtrArray* transforms, GHashTable* hfids) {