summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-08-18 13:22:27 +0200
committerAnders Broman <a.broman58@gmail.com>2014-08-18 11:24:57 +0000
commitf53c6b36a4dcdac712e0e9dbf5fc497dfd124008 (patch)
treebfeaf9ff51da5b7a1e378ba3538d1f13f8f107ac /plugins
parent29c4c36105b37cb58d05c0097c8d8d708dd81ade (diff)
downloadwireshark-f53c6b36a4dcdac712e0e9dbf5fc497dfd124008.tar.gz
Add missing parameter to proto_tree_add_bytes_format_value()
tvb_lenght -> tvb_reported_length Change-Id: Ibcb4a7caceaa8207877bdec0f770ad77f84dbe56 Reviewed-on: https://code.wireshark.org/review/3701 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gryphon/packet-gryphon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gryphon/packet-gryphon.c b/plugins/gryphon/packet-gryphon.c
index 6fce3d63f7..23dc177580 100644
--- a/plugins/gryphon/packet-gryphon.c
+++ b/plugins/gryphon/packet-gryphon.c
@@ -779,7 +779,7 @@ static int
dissect_gryphon_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
dissect_gryphon_message(tvb, pinfo, tree, FALSE);
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
}
static int
@@ -787,7 +787,7 @@ dissect_gryphon(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
{
tcp_dissect_pdus(tvb, pinfo, tree, gryphon_desegment, FRAME_HEADER_LEN,
get_gryphon_pdu_len, dissect_gryphon_pdu, data);
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
}
static void
@@ -1925,7 +1925,7 @@ cmd_options(tvbuff_t *tvb, int offset, proto_tree *pt)
break;
}
proto_tree_add_uint_format_value(tree, hf_gryphon_option, tvb, offset, 1, option, "%s", string);
- proto_tree_add_bytes_format_value(tree, hf_gryphon_option_data, tvb, offset+2, option_length, "%s", string1);
+ proto_tree_add_bytes_format_value(tree, hf_gryphon_option_data, tvb, offset+2, option_length, NULL, "%s", string1);
if (padding)
proto_tree_add_item(tree, hf_gryphon_padding, tvb, offset+option_length+2, padding, ENC_NA);
offset += size + padding;