Switch a bunch of dissectors over to using tvb_new_subset_remaining()
[obnox/wireshark/wip.git] / epan / dissectors / packet-ieee8023.c
index aec6252520291ccd40138da4bc78a07f0efa641a..142dcf18f22cc1c9101a54af5183f02ba887ba04 100644 (file)
@@ -76,7 +76,7 @@ dissect_802_3(volatile int length, gboolean is_802_2, tvbuff_t *tvb,
     captured_length = length;
   next_tvb = tvb_new_subset(tvb, offset_after_length, captured_length, length);
   TRY {
-    trailer_tvb = tvb_new_subset(tvb, offset_after_length + length, -1, -1);
+    trailer_tvb = tvb_new_subset_remaining(tvb, offset_after_length + length);
   }
   CATCH2(BoundsError, ReportedBoundsError) {
     /* The packet has exactly "length" bytes worth of captured data