aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-icmpv6.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-03-01 17:23:39 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-03-01 17:23:39 +0000
commitb091b8d26cf290d1f4fdf41820f01e87bb6b7d6d (patch)
tree75b52bc6b03f8df488b8acbe97063df9d6d8b02d /epan/dissectors/packet-icmpv6.c
parent346d46b8d020d0b5bdd9757622cdec2625349a10 (diff)
Rewrote to use g_strlcpy and g_strlcat.
svn path=/trunk/; revision=24525
Diffstat (limited to 'epan/dissectors/packet-icmpv6.c')
-rw-r--r--epan/dissectors/packet-icmpv6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-icmpv6.c b/epan/dissectors/packet-icmpv6.c
index 320eb5e28b..ce7dfb50a2 100644
--- a/epan/dissectors/packet-icmpv6.c
+++ b/epan/dissectors/packet-icmpv6.c
@@ -50,6 +50,7 @@
#include <epan/ipproto.h>
#include <epan/emem.h>
#include <epan/asn1.h>
+#include <epan/strutil.h>
#include "packet-ber.h"
#include "packet-ipv6.h"
@@ -885,7 +886,7 @@ bitrange(tvbuff_t *tvb, int offset, int l, int s)
for (i = 0; i < l; i++) {
if (bitrange0(tvb_get_ntohl(tvb, offset + i * 4), s + i * 4, q, eq - q) == NULL) {
if (q != buf && q + 5 < buf + sizeof(buf))
- strncpy(q, ",...", 5);
+ g_strlcpy(q, ",...", 5);
return buf;
}
}