diff options
author | Evan Huus <eapache@gmail.com> | 2015-06-23 17:30:22 -0700 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2015-06-24 00:31:25 +0000 |
commit | 9b5b7c1a9074c7d64bd07fe68377d9ad06ccbc2a (patch) | |
tree | fbb55ae5fdfb2799424c6ad919f0ef1c7429392d /epan/tvbuff_subset.c | |
parent | 893e1e516ae58d662aeaec78f86838eb9d3246c5 (diff) |
Remove deprecated tvb_length calls
Trust that the files in epan/ immediately (not dissectors) know what they're
doing so just blindly convert them to captured length.
Change-Id: I872f7d58b2e15ae82c75fd56f4873996fbc97be7
Reviewed-on: https://code.wireshark.org/review/9083
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/tvbuff_subset.c')
-rw-r--r-- | epan/tvbuff_subset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tvbuff_subset.c b/epan/tvbuff_subset.c index 3bb6e8fd18..b463e46b0f 100644 --- a/epan/tvbuff_subset.c +++ b/epan/tvbuff_subset.c @@ -181,7 +181,7 @@ tvb_new_subset_length(tvbuff_t *backing, const gint backing_offset, const gint b /* * Give the next dissector only captured_length bytes. */ - captured_length = tvb_length_remaining(backing, backing_offset); + captured_length = tvb_captured_length_remaining(backing, backing_offset); THROW_ON(captured_length < 0, BoundsError); if (captured_length > backing_length) captured_length = backing_length; |