Switch a bunch of dissectors over to using tvb_new_subset_remaining()
[obnox/wireshark/wip.git] / plugins / docsis / packet-regrsp.c
index aa51d1767eac1b5bbed06e3e7a73734a95984b7e..1c366752a75615b5b8a6ba9600abae2ba4e57a61 100644 (file)
@@ -84,7 +84,7 @@ dissect_regrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
       proto_tree_add_item (regrsp_tree, hf_docsis_regrsp_response, tvb, 2, 1,
                           FALSE);
       /* Call Dissector for Appendix C TLV's */
-      next_tvb = tvb_new_subset (tvb, 3, -1, -1);
+      next_tvb = tvb_new_subset_remaining (tvb, 3);
       call_dissector (docsis_tlv_handle, next_tvb, pinfo, regrsp_tree);
     }