From aaf6c7f73d53b66ea6622c835003c030e64caef4 Mon Sep 17 00:00:00 2001 From: morriss Date: Fri, 19 Sep 2008 12:17:32 +0000 Subject: Correct the field lengths for the segmentation parameter (fixes the highlighting in the byte pane). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26229 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-sccp.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'epan/dissectors/packet-sccp.c') diff --git a/epan/dissectors/packet-sccp.c b/epan/dissectors/packet-sccp.c index 37d1945b4b..24f1e237dd 100644 --- a/epan/dissectors/packet-sccp.c +++ b/epan/dissectors/packet-sccp.c @@ -1659,13 +1659,11 @@ dissect_sccp_segmentation_param(tvbuff_t *tvb, proto_tree *tree, guint length) sccp_parameter_values, "Unknown")); param_tree = proto_item_add_subtree(param_item, ett_sccp_segmentation); - proto_tree_add_uint(param_tree, hf_sccp_segmentation_first, tvb, 0, length, - first); - proto_tree_add_uint(param_tree, hf_sccp_segmentation_class, tvb, 0, length, - class); - proto_tree_add_uint(param_tree, hf_sccp_segmentation_remaining, tvb, 0, - length, remaining); - proto_tree_add_uint(param_tree, hf_sccp_segmentation_slr, tvb, 1, length, + proto_tree_add_uint(param_tree, hf_sccp_segmentation_first, tvb, 0, 1, first); + proto_tree_add_uint(param_tree, hf_sccp_segmentation_class, tvb, 0, 1, class); + proto_tree_add_uint(param_tree, hf_sccp_segmentation_remaining, tvb, 0, 1, + remaining); + proto_tree_add_uint(param_tree, hf_sccp_segmentation_slr, tvb, 1, length-1, slrx); } -- cgit v1.2.3