diff options
Diffstat (limited to 'plugins/ethercat/packet-ethercat-datagram.c')
-rw-r--r-- | plugins/ethercat/packet-ethercat-datagram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ethercat/packet-ethercat-datagram.c b/plugins/ethercat/packet-ethercat-datagram.c index 2c55934a24..db945f3781 100644 --- a/plugins/ethercat/packet-ethercat-datagram.c +++ b/plugins/ethercat/packet-ethercat-datagram.c @@ -806,7 +806,7 @@ static void dissect_ecat_datagram(tvbuff_t *tvb, packet_info *pinfo, proto_tree { const guint MBoxLength = mbox.Length + 6 /* MBOX header length */; - next_tvb = tvb_new_subset(tvb, suboffset, MBoxLength, MBoxLength); + next_tvb = tvb_new_subset_length(tvb, suboffset, MBoxLength); call_dissector(ecat_mailbox_handle, next_tvb, pinfo, ecat_datagram_tree); if( tree ) |