aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-jxta.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-08-08 18:50:39 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-08-08 18:50:39 +0000
commit0dc9fb3d4ab00d14bf45c597471e10e601efd4d4 (patch)
treeae44175ca8fd23548fcec5833098b535af5e372c /epan/dissectors/packet-jxta.c
parentf3407856f4fd97caf90655205cdb2c66991e75ba (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 svn path=/trunk/; revision=15264
Diffstat (limited to 'epan/dissectors/packet-jxta.c')
-rw-r--r--epan/dissectors/packet-jxta.c8
1 files changed, 4 insertions, 4 deletions
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 );