aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-adwin.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-09-08 21:59:38 -0400
committerAnders Broman <a.broman58@gmail.com>2014-09-10 07:54:00 +0000
commitf9d4e0a815cf9c8f1fe5a5a106fcce3755daf8f2 (patch)
treef3abbec56de906935bd40771c4be791e6fb695ea /epan/dissectors/packet-adwin.c
parent1bf82c3b64b798eb3df99d24819fc8a961d7dbe0 (diff)
Replace deprecated tvb_length calls
And a few other misc. cleanups while in the neighbourhood. Change-Id: Ic0d6836dec9c36d31ea244a6adc74d4713565090 Reviewed-on: https://code.wireshark.org/review/4047 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-adwin.c')
-rw-r--r--epan/dissectors/packet-adwin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-adwin.c b/epan/dissectors/packet-adwin.c
index 194d8eb44b..7bb06b3429 100644
--- a/epan/dissectors/packet-adwin.c
+++ b/epan/dissectors/packet-adwin.c
@@ -439,7 +439,7 @@ static const value_string packet_type_mapping[] = {
static value_string_ext packet_type_mapping_ext = VALUE_STRING_EXT_INIT(packet_type_mapping);
#define SET_PACKET_TYPE(tree, type) \
- proto_tree_add_int(tree, hf_adwin_packet_type, tvb, 0, tvb_length(tvb), type);
+ proto_tree_add_int(tree, hf_adwin_packet_type, tvb, 0, tvb_captured_length(tvb), type);
/* Initialize the protocol and registered fields */