aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/gryphon
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-05-08 18:24:08 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-05-08 18:24:08 +0000
commitdb6d0b9a4ce0e8f89313bd6fc1d29327a79cae6b (patch)
tree27b3b08ac00cd2bcd9f16cf81817e3b2158c6094 /plugins/gryphon
parent693291377eacb190b959e9905255005390104f56 (diff)
Run checkAPI in plugins dir.
svn path=/trunk/; revision=25259
Diffstat (limited to 'plugins/gryphon')
-rw-r--r--plugins/gryphon/packet-gryphon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gryphon/packet-gryphon.c b/plugins/gryphon/packet-gryphon.c
index b531b0473a..c3b1778023 100644
--- a/plugins/gryphon/packet-gryphon.c
+++ b/plugins/gryphon/packet-gryphon.c
@@ -937,11 +937,11 @@ cmd_setfilt(tvbuff_t *tvb, int offset, proto_tree *pt)
length = tvb_get_guint8(tvb, offset+4) + tvb_get_guint8(tvb, offset+5)
+ tvb_get_ntohs(tvb, offset+6);
if (flag)
- strncpy (mode, "Pass", 10);
+ g_strlcpy (mode, "Pass", 30);
else
- strncpy (mode, "Block", 10);
+ g_strlcpy (mode, "Block", 30);
if (length == 0)
- strncat (mode, " all", 10);
+ g_strlcat (mode, " all", 30);
proto_tree_add_text(pt, tvb, offset, 4, "Pass/Block flag: %s", mode);
proto_tree_add_text(pt, tvb, offset+4, 4, "Length of Pattern & Mask: %d", length);
offset += 8;