diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-10-31 08:39:14 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-10-31 08:39:14 +0000 |
commit | 91f8e15bff133d6ee497b64a6e3a283f6f865ecc (patch) | |
tree | b9cfc1e2c0a6a6ed6ec891d636df7ed377911012 | |
parent | 15d4c70e0843c19a8a62c06bf95771f462cef9ce (diff) | |
download | coreutils-91f8e15bff133d6ee497b64a6e3a283f6f865ecc.tar.xz |
(skip): Fix off-by-one error reported by Theodoros V. Kalamatianos.
-rw-r--r-- | src/dd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |