From 4a976f1be7f36414ae9736983f5075456e11ac40 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Tue, 13 Dec 2011 04:01:33 +0000 Subject: Use tvb_new_child_real_data() instead of tvb_new_real_data() + tvb_set_child_real_data_tvbuff(). svn path=/trunk/; revision=40173 --- epan/dissectors/packet-opensafety.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'epan/dissectors/packet-opensafety.c') 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)"); } -- cgit v1.2.3