aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-opensafety.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-12-13 04:01:33 +0000
committerBill Meier <wmeier@newsguy.com>2011-12-13 04:01:33 +0000
commit4a976f1be7f36414ae9736983f5075456e11ac40 (patch)
treebbfe4c70dabccf9e5bc04eeaf5038530d57db5a8 /epan/dissectors/packet-opensafety.c
parent37bb6e88fde76a86659878143798a8b8ce78f9da (diff)
Use tvb_new_child_real_data() instead of tvb_new_real_data() + tvb_set_child_real_data_tvbuff().
svn path=/trunk/; revision=40173
Diffstat (limited to 'epan/dissectors/packet-opensafety.c')
-rw-r--r--epan/dissectors/packet-opensafety.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-opensafety.c b/epan/dissectors/packet-opensafety.c
index 3554c8a8f6..c03f442c71 100644
--- a/epan/dissectors/packet-opensafety.c
+++ b/epan/dissectors/packet-opensafety.c
@@ -1182,8 +1182,7 @@ opensafety_package_dissector(const gchar * protocolName, const gchar * sub_diss_
/* Freeing memory before dissector, as otherwise we would waste it */
if ( do_byte_swap == TRUE && global_mbtcp_big_endian == TRUE )
{
- next_tvb = tvb_new_real_data(&bytes[frameOffset], (frameLength), reported_len);
- tvb_set_child_real_data_tvbuff(message_tvb, next_tvb);
+ next_tvb = tvb_new_child_real_data(message_tvb, &bytes[frameOffset], (frameLength), reported_len);
/* Adding a visual aid to the dissector tree */
add_new_data_source(pinfo, next_tvb, "openSAFETY Frame (Swapped)");
}