diff options
author | Michael Mann <mmann78@netscape.net> | 2014-06-06 10:35:50 -0400 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-06-07 15:41:07 +0000 |
commit | 73217d9f3fbff3d9f5a514cd7f2b7f4ca5f61947 (patch) | |
tree | 194ce9f6db1db1237a755f832d34367d2df8320b /epan/dissectors/packet-quakeworld.c | |
parent | a048dc1d0d33728022831a538d878e967da88901 (diff) | |
download | wireshark-73217d9f3fbff3d9f5a514cd7f2b7f4ca5f61947.tar.gz |
tvb_new_subset -> tvb_new_subset_length when length parameters are equal.
tvb_new_subset -> tvb_new_subset_remaining it appears that's what the intention is.
Change-Id: I2334bbf3f10475b3c22391392fc8b6864454de2d
Reviewed-on: https://code.wireshark.org/review/1999
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-quakeworld.c')
-rw-r--r-- | epan/dissectors/packet-quakeworld.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-quakeworld.c b/epan/dissectors/packet-quakeworld.c index 4ceb8a4fad..774a56c436 100644 --- a/epan/dissectors/packet-quakeworld.c +++ b/epan/dissectors/packet-quakeworld.c @@ -638,8 +638,7 @@ dissect_quakeworld_GamePacket(tvbuff_t *tvb, packet_info *pinfo, /* all the rest is pure game data */ rest_length = tvb_reported_length(tvb) - offset; if (rest_length) { - tvbuff_t *next_tvb = - tvb_new_subset(tvb, offset, rest_length , rest_length); + tvbuff_t *next_tvb = tvb_new_subset_remaining(tvb, offset); if (direction == DIR_C2S) { proto_tree *c_tree = NULL; |