aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-quake2.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-quake2.c')
-rw-r--r--epan/dissectors/packet-quake2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-quake2.c b/epan/dissectors/packet-quake2.c
index 38b9212d23..142ba12f43 100644
--- a/epan/dissectors/packet-quake2.c
+++ b/epan/dissectors/packet-quake2.c
@@ -106,7 +106,7 @@ dissect_quake2_ConnectionlessPacket(tvbuff_t *tvb, packet_info *pinfo _U_,
/* all the rest of the packet is just text */
offset = 4;
- len = tvb_length_remaining(tvb, offset);
+ len = tvb_captured_length_remaining(tvb, offset);
text = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, len, ENC_ASCII);
proto_tree_add_string(cl_tree, hf_quake2_connectionless_text,
tvb, offset, len, text);