Switch a bunch of dissectors over to using tvb_new_subset_remaining()
[obnox/wireshark/wip.git] / epan / dissectors / packet-dcp-etsi.c
index 7cfec3a7e5c59c549f9bee9c3df4654f1d8b74b5..28d46c141193c46f96167ac9ea8da02308fa16fc 100644 (file)
@@ -523,7 +523,7 @@ dissect_pft(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
                                       );
     pinfo->fragmented = save_fragmented;
   } else {
-    next_tvb = tvb_new_subset (tvb, offset, -1, -1);
+    next_tvb = tvb_new_subset_remaining (tvb, offset);
   }
   if(next_tvb) {
     dissect_af(next_tvb, pinfo, tree);