diff options
author | Jim Meyering <jim@meyering.net> | 1997-02-12 16:31:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-02-12 16:31:01 +0000 |
commit | 6bdbdae68cf04732179f81f3f61d1743d8f9749f (patch) | |
tree | 10df9de56aa3bd35af320bfd4185756fa897e774 /src | |
parent | 59f891e8b86da5aa51cbd2a16132eae943a6e83b (diff) | |
download | coreutils-6bdbdae68cf04732179f81f3f61d1743d8f9749f.tar.xz |
fixed off-by-one error
Diffstat (limited to 'src')
-rw-r--r-- | src/tac.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |