aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/graph_analysis.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2006-10-11 23:25:51 +0000
committerGerald Combs <gerald@wireshark.org>2006-10-11 23:25:51 +0000
commit5da5bf256791b82227585600f58e5ec344d11790 (patch)
treee81ff9e4f6f2f55b27030dcbe72c6bc1410d1f93 /gtk/graph_analysis.c
parentf29d4f9026eb11d72cc3a13e11a11e8e9be25ffd (diff)
When dumping the graph data to a file, don't walk past the end of a buffer.
Should fix bug 396. svn path=/trunk/; revision=19499
Diffstat (limited to 'gtk/graph_analysis.c')
-rw-r--r--gtk/graph_analysis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/graph_analysis.c b/gtk/graph_analysis.c
index 35dfa82e28..6c928b18c5 100644
--- a/gtk/graph_analysis.c
+++ b/gtk/graph_analysis.c
@@ -313,7 +313,7 @@ static gboolean dialog_graph_dump_to_file(graph_analysis_data_t* user_data)
list = g_list_first(user_data->graph_info->list);
current_item = 0;
i = 0;
- while (list)
+ while (list && current_item < NUM_DISPLAY_ITEMS)
{
gai = list->data;
if (gai->display){