projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21aa588
)
(dump): Convert to use smaller -- but seemingly equivalent -- patch.
author
Jim Meyering
<jim@meyering.net>
Wed, 12 Jul 1995 03:06:03 +0000
(
03:06
+0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 12 Jul 1995 03:06:03 +0000
(
03:06
+0000)
src/od.c
patch
|
blob
|
history
diff --git
a/src/od.c
b/src/od.c
index
28fdc66
..
ee40f6c
100644
(file)
--- a/
src/od.c
+++ b/
src/od.c
@@
-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;