diff options
author | Jim Meyering <jim@meyering.net> | 1995-07-12 03:06:03 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-07-12 03:06:03 +0000 |
commit | c20ee98ac891ee1eff6155f191ab6d10eebbe49b (patch) | |
tree | d90c2a4869ff1a08885c48eb1b1014e20c7d184c | |
parent | 21aa588967b9cb7bd812162bfededebacbdcdb8c (diff) | |
download | coreutils-c20ee98ac891ee1eff6155f191ab6d10eebbe49b.tar.xz |
(dump): Convert to use smaller -- but seemingly equivalent -- patch.
-rw-r--r-- | src/od.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1400,13 +1400,13 @@ dump () while (1) { size_t n_needed; - n_needed = MIN (end_offset - current_offset, - (off_t) bytes_per_block); - if (n_needed == 0) + if (current_offset >= end_offset) { n_bytes_read = 0; break; } + n_needed = MIN (end_offset - current_offset, + (off_t) bytes_per_block); err |= read_block (n_needed, block[idx], &n_bytes_read); if (n_bytes_read < bytes_per_block) break; |