dvd-sector-copy.c (main): Use `last' to track final event for fixup.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 9 Apr 2022 16:51:43 +0000 (17:51 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 9 Apr 2022 16:51:43 +0000 (17:51 +0100)
commit0a9199a13b1aec60f38818b23c49ba0674b6047d
treecd9378c76571c96e36566049e72c8552e2c09720
parent64229dd6766eb69d326df96ed356ed0782425ed1
dvd-sector-copy.c (main): Use `last' to track final event for fixup.

The `start' variable was doing double-duty, resulting in a possibly
erroneous value if the last event is `EV_WRITE', and a possibly
erroneous count of sectors.  Use `last' instead, because nothing else is
using this.
dvd-sector-copy.c