aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-08-17 22:03:21 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-08-17 22:03:21 +0000
commit33b08bdd52714486978ba01d8af988ab4d7da732 (patch)
treea5182e77f986d053803735600fcdca0cc1c28882
parent75970c09e2a4056c984896b65c4d75da9072bb81 (diff)
snprintf -> g_snprintf
svn path=/trunk/; revision=15393
-rw-r--r--epan/dissectors/packet-ip.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c
index 4409a56a72..987ad11b07 100644
--- a/epan/dissectors/packet-ip.c
+++ b/epan/dissectors/packet-ip.c
@@ -36,10 +36,6 @@
#include <string.h>
#include <glib.h>
-#ifdef NEED_SNPRINTF_H
-# include "snprintf.h"
-#endif
-
#include <epan/packet.h>
#include <epan/addr_resolv.h>
#include <epan/ipproto.h>
@@ -706,7 +702,7 @@ dissect_ip_tcp_options(tvbuff_t *tvb, int offset, guint length,
optp = NULL; /* indicate that we don't know this option */
len_type = VARIABLE_LENGTH;
optlen = 2;
- snprintf(name_str, sizeof name_str, "Unknown (0x%02x)", opt);
+ g_snprintf(name_str, sizeof name_str, "Unknown (0x%02x)", opt);
name = name_str;
dissect = NULL;
} else {