From: Paul Eggert Date: Mon, 31 Oct 2005 08:39:14 +0000 (+0000) Subject: (skip): Fix off-by-one error reported by Theodoros V. Kalamatianos. X-Git-Tag: v6.0~1441 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91f8e15bff133d6ee497b64a6e3a283f6f865ecc;p=thirdparty%2Fcoreutils.git (skip): Fix off-by-one error reported by Theodoros V. Kalamatianos. --- diff --git a/src/dd.c b/src/dd.c index 0c65149b5e..56e3a033e2 100644 --- a/src/dd.c +++ b/src/dd.c @@ -1167,7 +1167,7 @@ skip (int fdesc, char const *file, uintmax_t records, size_t blocksize, if (fdesc == STDIN_FILENO) advance_input_offset (nread); } - while (records-- != 0); + while (--records != 0); return records; }