aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-quake3.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-quake3.c')
-rw-r--r--epan/dissectors/packet-quake3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-quake3.c b/epan/dissectors/packet-quake3.c
index 3b8bfc328f..90459ec3f5 100644
--- a/epan/dissectors/packet-quake3.c
+++ b/epan/dissectors/packet-quake3.c
@@ -430,8 +430,7 @@ dissect_quake3_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;