diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-12-11 06:58:41 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-12-11 06:58:41 +0000 |
commit | b5c53d822291b90b19284d04b0d55db5f8c34cc5 (patch) | |
tree | eabd0b414464f5fbde5d950485aa4374cf178b60 /packet-snmp.c | |
parent | b8484bcc2705cf689d448dc3a81998183aad3510 (diff) |
Fix a couple of typos.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1290 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-snmp.c')
-rw-r--r-- | packet-snmp.c | 5 |
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]); |