diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-08-18 19:31:15 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-08-18 19:31:15 +0000 |
commit | 994496a18467cfc04e6220e724d9482a48bc42bf (patch) | |
tree | 7bbe9c727c44cc6a41cf4511e4e3963289f644ab /epan/dissectors/packet-fcswils.c | |
parent | e5af0106ac926d26a64713a64f7a176486611189 (diff) |
several times replacing:
sprintf -> g_snprintf
snprintf -> g_snprintf
vsnprintf -> g_vsnprintf
strdup -> g_strdup
svn path=/trunk/; revision=15412
Diffstat (limited to 'epan/dissectors/packet-fcswils.c')
-rw-r--r-- | epan/dissectors/packet-fcswils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-fcswils.c b/epan/dissectors/packet-fcswils.c index 064921595a..8b0f5e7929 100644 --- a/epan/dissectors/packet-fcswils.c +++ b/epan/dissectors/packet-fcswils.c @@ -1009,7 +1009,7 @@ dissect_swils_zone_mbr (tvbuff_t *tvb, proto_tree *zmbr_tree, int offset) 8))); break; case FC_SWILS_ZONEMBR_DP: - sprintf(dpbuf, "0x%08x", tvb_get_ntohl (tvb, offset+4)); + g_snprintf(dpbuf, sizeof(dpbuf), "0x%08x", tvb_get_ntohl (tvb, offset+4)); proto_tree_add_string (zmbr_tree, hf_swils_zone_mbrid, tvb, offset+4, 4, dpbuf); break; @@ -1035,7 +1035,7 @@ dissect_swils_zone_mbr (tvbuff_t *tvb, proto_tree *zmbr_tree, int offset) offset+12, 8, 0); break; case FC_SWILS_ZONEMBR_DP_LUN: - sprintf(dpbuf, "0x%08x", tvb_get_ntohl (tvb, offset+4)); + g_snprintf(dpbuf, sizeof(dpbuf), "0x%08x", tvb_get_ntohl (tvb, offset+4)); proto_tree_add_string (zmbr_tree, hf_swils_zone_mbrid, tvb, offset+4, 4, dpbuf); proto_tree_add_item (zmbr_tree, hf_swils_zone_mbrid_lun, tvb, |