aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-isup.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-08 18:50:39 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-08 18:50:39 +0000
commitd615067ecfe859cadfb09c0896864a4bff299d4f (patch)
treeae44175ca8fd23548fcec5833098b535af5e372c /epan/dissectors/packet-isup.c
parentb5ff280c656047376ee397671794e3b15e7ac3ae (diff)
various code cleanup:
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15264 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-isup.c')
-rw-r--r--epan/dissectors/packet-isup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-isup.c b/epan/dissectors/packet-isup.c
index e618be2552..a83f58b88b 100644
--- a/epan/dissectors/packet-isup.c
+++ b/epan/dissectors/packet-isup.c
@@ -5656,8 +5656,8 @@ static int msg_stats_tree_packet(stats_tree *st , packet_info *pinfo, epan_diss
int msg_node;
int dir_node;
- address_to_str_buf(&(pinfo->net_src), src);
- address_to_str_buf(&(pinfo->net_dst), dst);
+ address_to_str_buf(&(pinfo->net_src), src, sizeof src);
+ address_to_str_buf(&(pinfo->net_dst), dst, sizeof dst);
g_snprintf(dir,sizeof(dir),"%s->%s",src,dst);
msg_node = tick_stat_node(st, msg, st_node_msg, TRUE);