diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-03-01 17:23:39 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-03-01 17:23:39 +0000 |
commit | 994d316315868546fa15319311187414c3b4d4f9 (patch) | |
tree | 75b52bc6b03f8df488b8acbe97063df9d6d8b02d /epan/dissectors/packet-icmpv6.c | |
parent | bb42d82ed760cb028118fca73c79f37e1cbc00b6 (diff) |
Rewrote to use g_strlcpy and g_strlcat.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24525 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-icmpv6.c')
-rw-r--r-- | epan/dissectors/packet-icmpv6.c | 3 |
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; } } |