diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-03-26 01:22:31 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-03-26 01:22:31 +0000 |
commit | 6af64e5d1103527cf129bc74f98585ed8ff17d00 (patch) | |
tree | 328da3369dee2bd808205d7edf0737a50f6db86c /epan/dissectors/packet-isup.c | |
parent | 1efbf6dd9938217f6881632aa247273225b9c393 (diff) |
Simplify the generation of the 'name' passed to tick_stat_node().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36342 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-isup.c')
-rw-r--r-- | epan/dissectors/packet-isup.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/epan/dissectors/packet-isup.c b/epan/dissectors/packet-isup.c index a1890fcf96..e9b1147441 100644 --- a/epan/dissectors/packet-isup.c +++ b/epan/dissectors/packet-isup.c @@ -7612,16 +7612,12 @@ msg_stats_tree_init(stats_tree* st) static int msg_stats_tree_packet(stats_tree *st, packet_info *pinfo, epan_dissect_t *edt _U_, const void *p ) { - const gchar* msg = match_strval_ext(((const isup_tap_rec_t*)p)->message_type, &isup_message_type_value_acro_ext); - gchar src[MAX_ADDR_STR_LEN]; - gchar dst[MAX_ADDR_STR_LEN]; - gchar dir[MAX_ADDR_STR_LEN]; + const gchar *msg = match_strval_ext(((const isup_tap_rec_t*)p)->message_type, &isup_message_type_value_acro_ext); + gchar *dir; int msg_node; int dir_node; - address_to_str_buf(&(pinfo->src), src, sizeof src); - address_to_str_buf(&(pinfo->dst), dst, sizeof dst); - g_snprintf(dir,sizeof(dir),"%s->%s",src,dst); + dir = ep_strdup_printf("%s->%s", ep_address_to_str(&pinfo->src), ep_address_to_str(&pinfo->dst)); msg_node = tick_stat_node(st, msg, st_node_msg, TRUE); tick_stat_node(st, dir, msg_node, FALSE); |