summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2008-01-18 02:15:42 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2008-01-18 02:15:42 +0000
commit8d24a39a72a8aa06570767107ce2fa9498800683 (patch)
tree80d6bfaf05e2eb71d96631b5cc97e3c73d80882f
parentfd2df9f28f74f05cca3cad2307c0edef064d3392 (diff)
fix stringval length
-rw-r--r--usr.sbin/snmpctl/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpctl/parser.c b/usr.sbin/snmpctl/parser.c
index f03983bb701..e709e8b2dd5 100644
--- a/usr.sbin/snmpctl/parser.c
+++ b/usr.sbin/snmpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.4 2008/01/18 02:09:30 reyk Exp $ */
+/* $OpenBSD: parser.c,v 1.5 2008/01/18 02:15:41 reyk Exp $ */
/*
* Copyright (c) 2008 Reyk Floeter <reyk@vantronix.net>
@@ -287,7 +287,7 @@ match_token(char *word, const struct token table[])
case STRINGVAL:
if (word == NULL || strlen(word) == 0)
break;
- iov[1].iov_len = strlen(word) + 1;
+ iov[1].iov_len = strlen(word);
iov[1].iov_base = word;
iovcnt = 2;
break;