aboutsummaryrefslogtreecommitdiffstats
path: root/packet-snmp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-12-11 06:58:41 +0000
committerGuy Harris <guy@alum.mit.edu>1999-12-11 06:58:41 +0000
commit4b41f91139171689e2e69740d4cb9caa86d8f511 (patch)
treeeabd0b414464f5fbde5d950485aa4374cf178b60 /packet-snmp.c
parent4873e0fa4aced6dfebd787d094fbd5764ac3b384 (diff)
Fix a couple of typos.
svn path=/trunk/; revision=1290
Diffstat (limited to 'packet-snmp.c')
-rw-r--r--packet-snmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-snmp.c b/packet-snmp.c
index 369f3995c0..67bb3155a9 100644
--- a/packet-snmp.c
+++ b/packet-snmp.c
@@ -2,7 +2,7 @@
* Routines for SNMP (simple network management protocol)
* D.Jorand (c) 1998
*
- * $Id: packet-snmp.c,v 1.18 1999/12/10 21:00:53 guy Exp $
+ * $Id: packet-snmp.c,v 1.19 1999/12/11 06:58:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -437,7 +437,7 @@ snmp_variable_decode(proto_tree *snmp_tree, ASN1_SCK *asn1, int offset,
if (snmp_tree) {
proto_tree_add_text(snmp_tree, offset, length,
"Value: <%s> %u (%#x)", vb_type_name,
- vb_integer_value, vb_uinteger_value);
+ vb_uinteger_value, vb_uinteger_value);
}
break;
@@ -468,6 +468,7 @@ snmp_variable_decode(proto_tree *snmp_tree, ASN1_SCK *asn1, int offset,
*/
buf = &vb_string[0];
len = sprintf(buf, "%03u", vb_octet_string[0]);
+ buf += len;
for (i = 1; i < vb_length; i++) {
len = sprintf(buf, ".%03u",
vb_octet_string[i]);