From 845a832facf0bf17a16b8177cb3fd24736e109f1 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 8 Jun 2015 08:39:02 -0700 Subject: Print "and greater" instead of a ten digit number. Change-Id: I97dfabe3ec48acf57b33ec15486d2d660d610f6d Reviewed-on: https://code.wireshark.org/review/8841 Reviewed-by: Gerald Combs --- plugins/stats_tree/pinfo_stats_tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/stats_tree') diff --git a/plugins/stats_tree/pinfo_stats_tree.c b/plugins/stats_tree/pinfo_stats_tree.c index 42c461e296..6308f20650 100644 --- a/plugins/stats_tree/pinfo_stats_tree.c +++ b/plugins/stats_tree/pinfo_stats_tree.c @@ -176,9 +176,11 @@ static void plen_stats_tree_init(stats_tree *st) { char **str_range_array = (char **)wmem_alloc(NULL, num_plen_uat*sizeof(char*)); /* Convert the ranges to strings for the stats tree API */ - for (i = 0; i < num_plen_uat; i++) { + for (i = 0; i < num_plen_uat - 1; i++) { str_range_array[i] = range_convert_range(NULL, uat_plen_records[i].packet_range); } + str_range_array[num_plen_uat - 1] = g_strdup_printf("%u and greater", + uat_plen_records[num_plen_uat - 1].packet_range->ranges[0].low); st_node_plen = stats_tree_create_range_node_string(st, st_str_plen, 0, num_plen_uat, str_range_array); for (i = 0; i < num_plen_uat; i++) { -- cgit v1.2.1