aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/agentx/packet-agentx.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-03-23 22:49:23 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-03-23 22:49:23 +0000
commit2896811274e430759305c7f25889cb0214213409 (patch)
tree30e2ec739ccffe6f19049153950e1d31f6604f66 /plugins/agentx/packet-agentx.c
parent3288a39db202082ceb1120367d017792323fdecf (diff)
Fix about 150 warnings new to gcc 4.0 in the error on warning directories.
Comment out -Werror in plugins/asn1/ until warnings can be fixed. svn path=/trunk/; revision=21158
Diffstat (limited to 'plugins/agentx/packet-agentx.c')
-rw-r--r--plugins/agentx/packet-agentx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/agentx/packet-agentx.c b/plugins/agentx/packet-agentx.c
index f7b6b2c49c..0c1a79dc36 100644
--- a/plugins/agentx/packet-agentx.c
+++ b/plugins/agentx/packet-agentx.c
@@ -306,7 +306,7 @@ static int dissect_octet_string(tvbuff_t *tvb, proto_tree *tree, int offset, cha
p_noct = PADDING(n_oct);
if (n_oct >= 1024)
THROW(ReportedBoundsError);
- tvb_get_nstringz(tvb, offset + 4, n_oct, context);
+ tvb_get_nstringz(tvb, offset + 4, n_oct, (guint8*)context);
context[n_oct]='\0';
proto_tree_add_uint(tree,hf_ostring_len,tvb,offset,4,n_oct);