From: Mark Wooding Date: Fri, 18 Feb 2022 22:55:57 +0000 (+0000) Subject: dvd-sector-copy.c: Write new data into the correct part of the buffer. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/dvdrip/commitdiff_plain/83c3fbe034eac81fcaa03499c1f36fc08e1d62fe dvd-sector-copy.c: Write new data into the correct part of the buffer. The debugging message had the right value, which made this annoyingly hard to track down. --- diff --git a/dvd-sector-copy.c b/dvd-sector-copy.c index 5c2c46b..dd97d8b 100644 --- a/dvd-sector-copy.c +++ b/dvd-sector-copy.c @@ -611,7 +611,7 @@ static ssize_t recovery_read(struct recoverybuf *r, r->pos + pp, pp, nn); fflush(stdout); #endif - n = recovery_read_sectors(r, pos, pp, nn); + n = recovery_read_sectors(r, pos + pp, pp, nn); #ifdef DEBUG printf(" -> %zd\n", n); #endif