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:
59f891e
)
fixed off-by-one error
author
Jim Meyering
<jim@meyering.net>
Wed, 12 Feb 1997 16:31:01 +0000
(16:31 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 12 Feb 1997 16:31:01 +0000
(16:31 +0000)
src/tac.c
patch
|
blob
|
history
diff --git
a/src/tac.c
b/src/tac.c
index
77c6834
..
07fb085
100644
(file)
--- a/
src/tac.c
+++ b/
src/tac.c
@@
-525,7
+525,7
@@
tac_mem (const char *buf, size_t n_bytes, FILE *out)
{
/* Output the line (which includes a trailing newline)
from NL+1 to BOL-1. */
- fwrite (nl + 1, 1, bol -
1 -
(nl + 1), out);
+ fwrite (nl + 1, 1, bol - (nl + 1), out);
bol = nl + 1;
}