diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-05-27 01:57:33 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-05-27 01:57:33 +0000 |
commit | 7ad71a2d7897a89f5f4a0e4e3f99a9417a928f70 (patch) | |
tree | 5f853f8d5a3726dec98475450aeb995c8fd891f3 /epan/dissectors/packet-etch.c | |
parent | afbbb55212bcb2b2b25001a70b4224b18d2e91dd (diff) |
Treat TVBs as opaque: use the accessor functions instead of accessing the fields
directly.
svn path=/trunk/; revision=37420
Diffstat (limited to 'epan/dissectors/packet-etch.c')
-rw-r--r-- | epan/dissectors/packet-etch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-etch.c b/epan/dissectors/packet-etch.c index 875736faab..69885ef972 100644 --- a/epan/dissectors/packet-etch.c +++ b/epan/dissectors/packet-etch.c @@ -610,7 +610,7 @@ read_struct(unsigned int *offset, tvbuff_t *tvb, proto_tree *etch_tree, int i; ti = proto_tree_add_item(etch_tree, hf_etch_struct, tvb, *offset, - tvb->length - *offset, ENC_NA); + tvb_length(tvb) - *offset, ENC_NA); new_tree = proto_item_add_subtree(ti, ett_etch_struct); if (add_type_field) { |