chiark / gitweb /
dvd-sector-copy.c: Write new data into the correct part of the buffer.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 18 Feb 2022 22:55:57 +0000 (22:55 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 18 Feb 2022 22:55:57 +0000 (22:55 +0000)
The debugging message had the right value, which made this annoyingly
hard to track down.

dvd-sector-copy.c

index 5c2c46bfad254be3c7c5ba2b9aa9f260045381ff..dd97d8b88bfe7de17bc53491b2d507a125989f91 100644 (file)
@@ -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