aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/profinet/packet-pn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/profinet/packet-pn.c b/plugins/profinet/packet-pn.c
index f58ab5bb88..9640b363cc 100644
--- a/plugins/profinet/packet-pn.c
+++ b/plugins/profinet/packet-pn.c
@@ -235,9 +235,9 @@ dissect_pn_user_data_bytes(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
{
if (tree) {
if(iSelect == FRAG_DATA)
- proto_tree_add_bytes(tree, hf_pn_frag_bytes, tvb, offset, length, tvb_get_ptr(tvb,offset, length));
+ proto_tree_add_item(tree, hf_pn_frag_bytes, tvb, offset, length, ENC_NA);
else
- proto_tree_add_bytes(tree, hf_pn_user_bytes, tvb, offset, length, tvb_get_ptr(tvb,offset, length));
+ proto_tree_add_item(tree, hf_pn_user_bytes, tvb, offset, length, ENC_NA);
}
return offset + length;
}