aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/irda
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-05-13 19:44:44 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-05-13 19:44:44 +0000
commitfbd05f0fce6a10a1f3059c40628962bc056e10ef (patch)
tree8bae6539c4a0282bdb37ac62df2b5ecc5f3f72cb /plugins/irda
parent6d2afb455adb12a7deb9c677fce39561e5c5be1c (diff)
Apply some of the patches from:
http://wiki.wireshark.org/Development/Optimization svn path=/trunk/; revision=28355
Diffstat (limited to 'plugins/irda')
-rw-r--r--plugins/irda/packet-sir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/irda/packet-sir.c b/plugins/irda/packet-sir.c
index 18a6a9d43b..b8803562a3 100644
--- a/plugins/irda/packet-sir.c
+++ b/plugins/irda/packet-sir.c
@@ -85,9 +85,8 @@ unescape_data(tvbuff_t *tvb, packet_info *pinfo)
*dst++ = c;
}
- next_tvb = tvb_new_real_data(data, (guint) (dst-data), (guint) (dst-data));
+ next_tvb = tvb_new_child_real_data(tvb, data, (guint) (dst-data), (guint) (dst-data));
tvb_set_free_cb(next_tvb, g_free);
- tvb_set_child_real_data_tvbuff(tvb, next_tvb);
add_new_data_source(pinfo, next_tvb, "Unescaped SIR");
return next_tvb;
}