summaryrefslogtreecommitdiff
path: root/plugins/profinet/packet-pn-rt.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-06-06 10:35:50 -0400
committerPascal Quantin <pascal.quantin@gmail.com>2014-06-07 15:41:07 +0000
commit73217d9f3fbff3d9f5a514cd7f2b7f4ca5f61947 (patch)
tree194ce9f6db1db1237a755f832d34367d2df8320b /plugins/profinet/packet-pn-rt.c
parenta048dc1d0d33728022831a538d878e967da88901 (diff)
downloadwireshark-73217d9f3fbff3d9f5a514cd7f2b7f4ca5f61947.tar.gz
tvb_new_subset -> tvb_new_subset_length when length parameters are equal.
tvb_new_subset -> tvb_new_subset_remaining it appears that's what the intention is. Change-Id: I2334bbf3f10475b3c22391392fc8b6864454de2d Reviewed-on: https://code.wireshark.org/review/1999 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'plugins/profinet/packet-pn-rt.c')
-rw-r--r--plugins/profinet/packet-pn-rt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/profinet/packet-pn-rt.c b/plugins/profinet/packet-pn-rt.c
index a93a4ce2ea..e5189fdba5 100644
--- a/plugins/profinet/packet-pn-rt.c
+++ b/plugins/profinet/packet-pn-rt.c
@@ -804,7 +804,7 @@ dissect_pn_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
pinfo->private_data = GUINT_TO_POINTER( (guint32) u16FrameID);
/* get frame user data tvb (without header and footer) */
- next_tvb = tvb_new_subset(tvb, 2, data_len, data_len);
+ next_tvb = tvb_new_subset_length(tvb, 2, data_len);
/* ask heuristics, if some sub-dissector is interested in this packet payload */
if (!dissector_try_heuristic(heur_subdissector_list, next_tvb, pinfo, tree, &hdtbl_entry, NULL)) {