aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/dd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index e046ff5cc..9299f58bc 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -363,13 +363,13 @@ int dd_main(int argc UNUSED_PARAM, char **argv)
363 } 363 }
364 if (skip) { 364 if (skip) {
365 if (lseek(ifd, skip * ibs, SEEK_CUR) < 0) { 365 if (lseek(ifd, skip * ibs, SEEK_CUR) < 0) {
366 while (skip-- > 0) { 366 do {
367 ssize_t n = safe_read(ifd, ibuf, ibs); 367 ssize_t n = safe_read(ifd, ibuf, ibs);
368 if (n < 0) 368 if (n < 0)
369 goto die_infile; 369 goto die_infile;
370 if (n == 0) 370 if (n == 0)
371 break; 371 break;
372 } 372 } while (--skip != 0);
373 } 373 }
374 } 374 }
375 if (seek) { 375 if (seek) {