aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-icmpv6.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-17 23:10:28 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-17 23:10:28 +0000
commit40e17eb5f8a5906c04a3f1c9b5ccf95b5f7fe276 (patch)
tree01e795f49b5d8ce36c5686cfbf20e4046e2d744e /epan/dissectors/packet-icmpv6.c
parent84abb180116d5acd91534d19d7e4997526a351f4 (diff)
snprintf -> g_snprintf
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15398 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-icmpv6.c')
-rw-r--r--epan/dissectors/packet-icmpv6.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/epan/dissectors/packet-icmpv6.c b/epan/dissectors/packet-icmpv6.c
index e9a23588a1..7f3af7c74a 100644
--- a/epan/dissectors/packet-icmpv6.c
+++ b/epan/dissectors/packet-icmpv6.c
@@ -41,10 +41,6 @@
#include <glib.h>
-#ifdef NEED_SNPRINTF_H
-# include "snprintf.h"
-#endif
-
#include <epan/packet.h>
#include "packet-ipv6.h"
#include "packet-dns.h"
@@ -478,9 +474,9 @@ bitrange0(guint32 v, int s, char *buf, int buflen)
break;
}
if (i == 1)
- l = snprintf(p, ep - p, ",%d", s + off);
+ l = g_snprintf(p, ep - p, ",%d", s + off);
else {
- l = snprintf(p, ep - p, ",%d-%d", s + off,
+ l = g_snprintf(p, ep - p, ",%d-%d", s + off,
s + off + i - 1);
}
if (l == -1 || l > ep - p) {
@@ -1214,12 +1210,12 @@ dissect_icmpv6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
char typebuf[256], codebuf[256];
if (coltypename && strcmp(coltypename, "Unknown") == 0) {
- snprintf(typebuf, sizeof(typebuf), "Unknown (0x%02x)",
+ g_snprintf(typebuf, sizeof(typebuf), "Unknown (0x%02x)",
dp->icmp6_type);
coltypename = typebuf;
}
if (colcodename && strcmp(colcodename, "Unknown") == 0) {
- snprintf(codebuf, sizeof(codebuf), "Unknown (0x%02x)",
+ g_snprintf(codebuf, sizeof(codebuf), "Unknown (0x%02x)",
dp->icmp6_code);
colcodename = codebuf;
}