aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-acr122.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-acr122.c')
-rw-r--r--epan/dissectors/packet-acr122.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-acr122.c b/epan/dissectors/packet-acr122.c
index feb3026d4d..47bdb72eb7 100644
--- a/epan/dissectors/packet-acr122.c
+++ b/epan/dissectors/packet-acr122.c
@@ -342,7 +342,7 @@ dissect_acr122(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
switch (command) {
case CMD_DIRECT_TRANSMIT:
if (length > 0) {
- next_tvb = tvb_new_subset(tvb, offset, length, length);
+ next_tvb = tvb_new_subset_length(tvb, offset, length);
call_dissector_with_data(pn532_handle, next_tvb, pinfo, tree, usb_conv_info);
offset += length;
}
@@ -523,7 +523,7 @@ dissect_acr122(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
use_status_word = TRUE;
if (tvb_length_remaining(tvb, offset) > 2) {
- next_tvb = tvb_new_subset(tvb, offset, tvb_length_remaining(tvb, offset) - 2, tvb_length_remaining(tvb, offset) - 2);
+ next_tvb = tvb_new_subset_length(tvb, offset, tvb_length_remaining(tvb, offset) - 2);
call_dissector_with_data(pn532_handle, next_tvb, pinfo, tree, usb_conv_info);
offset += tvb_length_remaining(tvb, offset) - 2;
}