From b7ef891af868b6026391d3473c0b43e7229e5b31 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 1 Mar 2015 23:03:27 -0500 Subject: Replace tvb_get_ptr calls with a better API choice. Just reduces the overall tvb_get_ptr usage count in the dissector directory. Change-Id: I455dc4cc9b082ecccdd254a2e5121f3353b5a812 Reviewed-on: https://code.wireshark.org/review/7491 Reviewed-by: Anders Broman --- epan/dissectors/packet-osi-options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-osi-options.c') diff --git a/epan/dissectors/packet-osi-options.c b/epan/dissectors/packet-osi-options.c index 6ae31cbca2..7d5f07db05 100644 --- a/epan/dissectors/packet-osi-options.c +++ b/epan/dissectors/packet-osi-options.c @@ -548,7 +548,7 @@ dissect_osi_options(guchar opt_len, tvbuff_t *tvb, int offset, proto_tree *tree) case OSI_OPT_ADDRESS_MASK: proto_tree_add_bytes_format_value(osi_option_tree, hf_osi_options_address_mask, tvb, offset, parm_len, - tvb_get_ptr(tvb, offset, parm_len), "%s", + NULL, "%s", print_area(tvb, offset, parm_len)); break; -- cgit v1.2.3