diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-08-04 19:57:30 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-08-04 19:57:30 +0000 |
commit | 905a0f92ce9b3765b15d00852a2e4400288a94a6 (patch) | |
tree | 1dd2808fc327d63090b900992c50ee3c5180ac38 /epan | |
parent | e155df9ebbc9f686b31031b429eb21da8a9191de (diff) |
Patch from Lee Berger to properly skip past the length in FT_UINT_STRING
data objects if the length isn't 1.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3821 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan')
-rw-r--r-- | epan/proto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/proto.c b/epan/proto.c index d086ed21a0..f926c99d04 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -1,7 +1,7 @@ /* proto.c * Routines for protocol tree * - * $Id: proto.c,v 1.31 2001/08/01 08:27:00 guy Exp $ + * $Id: proto.c,v 1.32 2001/08/04 19:57:30 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -542,11 +542,11 @@ proto_tree_add_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, case FT_UINT_STRING: /* This g_strdup'ed memory is freed in proto_tree_free_node() */ n = get_uint_value(tvb, start, length, little_endian); - proto_tree_set_string_tvb(new_fi, tvb, start + 1, n); + proto_tree_set_string_tvb(new_fi, tvb, start + length, n); /* Instead of calling proto_item_set_len(), since we don't yet * have a proto_item, we set the field_info's length ourselves. */ - new_fi->length = n + 1; + new_fi->length = n + length; break; default: g_error("new_fi->hfinfo->type %d (%s) not handled\n", |