dvd-sector-copy.c: Read into the correct part of the buffer. Again.
[dvdrip] / dvd-sector-copy.c
index 418262f..2c461e1 100644 (file)
@@ -398,7 +398,7 @@ static void report_progress(secaddr pos)
     ("copied %.1f%% (%"PRIuSEC" of %"PRIuSEC"; %.1f %sB/s, ETA %s)",
      percent, pos, limit,  rate, unit, etastr);
   if (file && id_kind(file->id) == VOB) {
-    append_progress(" -- %s %d %3.1f%%",
+    append_progress(" -- %s %d %.1f%%",
                    id_part(file->id) ? "title" : "menu",
                    id_title(file->id),
                    (pos - file->start)*100.0/
@@ -634,7 +634,7 @@ static ssize_t recovery_read(struct recoverybuf *r,
           r->pos + pp, pp, nn);
     fflush(stdout);
 #endif
-    n = recovery_read_sectors(r, pos + pp, pp, nn);
+    n = recovery_read_sectors(r, r->pos + pp, pp, nn);
 #ifdef DEBUG
     printf(" -> %zd\n", n);
 #endif