Switch a bunch of dissectors over to using tvb_new_subset_remaining()
[obnox/wireshark/wip.git] / plugins / irda / packet-ircomm.c
index a2340f42ba2d44185abfbc9af1652d864e437a77..77c81d766a058c685fcbea1f19d0f8b3f3a483b4 100644 (file)
@@ -213,7 +213,7 @@ static void dissect_cooked_ircomm(tvbuff_t* tvb, packet_info* pinfo, proto_tree*
             offset += clen;
         }
 
-        tvb = tvb_new_subset(tvb, offset, -1, -1);
+        tvb = tvb_new_subset_remaining(tvb, offset);
         call_dissector(data_handle, tvb, pinfo, tree);
     }
 }