diff options
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; |