aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-etch.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-05-27 01:57:33 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-05-27 01:57:33 +0000
commit7ad71a2d7897a89f5f4a0e4e3f99a9417a928f70 (patch)
tree5f853f8d5a3726dec98475450aeb995c8fd891f3 /epan/dissectors/packet-etch.c
parentafbbb55212bcb2b2b25001a70b4224b18d2e91dd (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.c2
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) {