Restore the formatting of the saved graph.
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 12 Aug 2009 00:02:23 +0000 (00:02 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 12 Aug 2009 00:02:23 +0000 (00:02 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29391 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/graph_analysis.c

index 4c58a9bc7d008a58da6a57e715cd031392e81de1..c03d56b0588458831308077e654c102bdb7de4d1 100644 (file)
@@ -421,7 +421,7 @@ static gboolean dialog_graph_dump_to_file(graph_analysis_data_t* user_data)
 
                /* write the frame label */
 
-               g_string_append(tmp_str, empty_line->str);
+               g_string_printf(tmp_str, "%s", empty_line->str);
                overwrite(tmp_str,user_data->dlg.items[current_item].frame_label,
                        start_position,
                        end_position
@@ -434,7 +434,7 @@ static gboolean dialog_graph_dump_to_file(graph_analysis_data_t* user_data)
                /* write the arrow and frame label*/
                fprintf(of, "%s", empty_header);
 
-               g_string_append(tmp_str, empty_line->str);
+               g_string_printf(tmp_str, "%s", empty_line->str);
 
                g_string_truncate(tmp_str2, 0);