aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sccp.c
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2008-09-19 12:17:32 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2008-09-19 12:17:32 +0000
commitaaf6c7f73d53b66ea6622c835003c030e64caef4 (patch)
tree9912833373436d0d293282a580f62430cff64f61 /epan/dissectors/packet-sccp.c
parent40448cddf5031bb768d9a2899d014390fb52368e (diff)
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
Diffstat (limited to 'epan/dissectors/packet-sccp.c')
-rw-r--r--epan/dissectors/packet-sccp.c12
1 files changed, 5 insertions, 7 deletions
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);
}