summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-02-12 16:31:01 +0000
committerJim Meyering <jim@meyering.net>1997-02-12 16:31:01 +0000
commit6bdbdae68cf04732179f81f3f61d1743d8f9749f (patch)
tree10df9de56aa3bd35af320bfd4185756fa897e774 /src
parent59f891e8b86da5aa51cbd2a16132eae943a6e83b (diff)
downloadcoreutils-6bdbdae68cf04732179f81f3f61d1743d8f9749f.tar.xz
fixed off-by-one error
Diffstat (limited to 'src')
-rw-r--r--src/tac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tac.c b/src/tac.c
index 77c68342c..07fb085ee 100644
--- 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;
}