From 0dc9fb3d4ab00d14bf45c597471e10e601efd4d4 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Mon, 8 Aug 2005 18:50:39 +0000 Subject: 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 svn path=/trunk/; revision=15264 --- epan/dissectors/packet-jxta.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-jxta.c') diff --git a/epan/dissectors/packet-jxta.c b/epan/dissectors/packet-jxta.c index e4c2cf61cb..fcabe44d69 100644 --- a/epan/dissectors/packet-jxta.c +++ b/epan/dissectors/packet-jxta.c @@ -1056,8 +1056,8 @@ static int dissect_jxta_message(tvbuff_t * tvb, packet_info * pinfo, proto_tree gchar src_addr[256]; gchar dst_addr[256]; - address_to_str_buf( &pinfo->src, src_addr ); - address_to_str_buf( &pinfo->dst, dst_addr ); + address_to_str_buf( &pinfo->src, src_addr, sizeof src_addr ); + address_to_str_buf( &pinfo->dst, dst_addr, sizeof dst_addr ); if( PT_NONE != pinfo->ptype ) { size_t len = strlen( src_addr ); @@ -1088,8 +1088,8 @@ static int dissect_jxta_message(tvbuff_t * tvb, packet_info * pinfo, proto_tree gchar dst_addr[256]; proto_item * tree_item; - address_to_str_buf( &pinfo->src, src_addr ); - address_to_str_buf( &pinfo->dst, dst_addr ); + address_to_str_buf( &pinfo->src, src_addr, sizeof src_addr ); + address_to_str_buf( &pinfo->dst, dst_addr, sizeof dst_addr ); if( PT_NONE != pinfo->ptype ) { size_t len = strlen( src_addr ); -- cgit v1.2.3