aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-05-14 20:23:09 -0700
committerGuy Harris <guy@alum.mit.edu>2014-05-15 03:23:38 +0000
commit84fcadcb0596f4cec11bdca225b14900262cbb66 (patch)
treea652c2fb0d4d0161431dff6b9c2f3c419acc498d /plugins
parent09bf1702a6b0210aa74a4665985f2094c311d19f (diff)
Get rid of some uses of tvb_get_ptr().
Change-Id: I85232f984f273c9a6ceccd12df5b77a4d131596c Reviewed-on: https://code.wireshark.org/review/1648 Reviewed-by: Guy Harris <guy@alum.mit.edu>
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;
}