From 22ee2764a7753c29133abebe83ba3c659f457b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Fri, 17 Dec 2021 20:05:19 +0000 Subject: Replace g_snprintf() with snprintf() (dissectors) Use macros from inttypes.h with format strings. --- epan/dissectors/packet-igmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-igmp.c') diff --git a/epan/dissectors/packet-igmp.c b/epan/dissectors/packet-igmp.c index 9320e124c0..3ebcbafe12 100644 --- a/epan/dissectors/packet-igmp.c +++ b/epan/dissectors/packet-igmp.c @@ -768,7 +768,7 @@ dissect_igmp_mtrace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, type = tvb_get_guint8(tvb, offset); if (type == IGMP_TRACEROUTE_RESPONSE) { int i = (tvb_reported_length_remaining(tvb, offset) - IGMP_TRACEROUTE_HDR_LEN) / IGMP_TRACEROUTE_RSP_LEN; - g_snprintf(buf, sizeof buf, ", %d block%s", i, plurality(i, "", "s")); + snprintf(buf, sizeof buf, ", %d block%s", i, plurality(i, "", "s")); typestr = "Traceroute Response"; blocks = buf; } else if (tvb_reported_length_remaining(tvb, offset) == IGMP_TRACEROUTE_HDR_LEN) -- cgit v1.2.3