From be6fb606915f4ccc68a62195619d176cd62f79f9 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Mon, 22 Jun 2015 09:59:50 -0700 Subject: Remove a bunch of deprecated tvb_length calls Change-Id: I9362e0fdc4519ba5f3d656152966e7030f478839 Reviewed-on: https://code.wireshark.org/review/9022 Petri-Dish: Evan Huus Tested-by: Petri Dish Buildbot Reviewed-by: Evan Huus --- epan/dissectors/packet-umts_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-umts_mac.c') diff --git a/epan/dissectors/packet-umts_mac.c b/epan/dissectors/packet-umts_mac.c index 42f8695776..d9b4afc534 100644 --- a/epan/dissectors/packet-umts_mac.c +++ b/epan/dissectors/packet-umts_mac.c @@ -468,7 +468,7 @@ static void dissect_mac_fdd_fach(tvbuff_t *tvb, packet_info *pinfo, proto_tree * PROTO_ITEM_SET_GENERATED(channel_type); /*We need to skip the first two bits (the TCTF bits), and since there is no MAC header, send rest to RRC*/ - next_tvb= tvb_new_octet_aligned(tvb, 2, (tvb_length(tvb)*8)-2); + next_tvb= tvb_new_octet_aligned(tvb, 2, (tvb_reported_length(tvb)*8)-2); add_new_data_source(pinfo, next_tvb, "Octet-Aligned BCCH Data"); /* In this case skip RLC and call RRC immediately subdissector */ -- cgit v1.2.3