aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-usb-com.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2017-02-22 21:41:13 +0100
committerMichael Mann <mmann78@netscape.net>2017-02-23 03:36:53 +0000
commit453cccd1c38346894357b49caf22091bbe6f2601 (patch)
treec4c67d7ad5156fcaefd359838138744136ad2182 /epan/dissectors/packet-usb-com.c
parent26512328ae5a491d19db3f1c27f4d09053c461aa (diff)
USB COM: highlight the bytes of the communications descriptor
Change-Id: Ia3aa1f5e35945ff8bf500508a67731b6ad3e28e3 Reviewed-on: https://code.wireshark.org/review/20252 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Petri-Dish: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-usb-com.c')
-rw-r--r--epan/dissectors/packet-usb-com.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-usb-com.c b/epan/dissectors/packet-usb-com.c
index f34bdefe2a..71653abc41 100644
--- a/epan/dissectors/packet-usb-com.c
+++ b/epan/dissectors/packet-usb-com.c
@@ -417,7 +417,7 @@ dissect_usb_com_descriptor(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
proto_tree *subtree_capabilities;
proto_item *subitem_capabilities;
- subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_usb_com, NULL, "COMMUNICATIONS DESCRIPTOR");
+ subtree = proto_tree_add_subtree(tree, tvb, offset, tvb_captured_length(tvb), ett_usb_com, NULL, "COMMUNICATIONS DESCRIPTOR");
dissect_usb_descriptor_header(subtree, tvb, offset, &usb_com_descriptor_type_vals_ext);
offset += 2;