]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
fixed off-by-one error
authorJim Meyering <jim@meyering.net>
Wed, 12 Feb 1997 16:31:01 +0000 (16:31 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 12 Feb 1997 16:31:01 +0000 (16:31 +0000)
src/tac.c

index 77c68342ca0ee5a8eb778eb854080645bb843be1..07fb085ee3fd5a028312d28de6ab9f825fd26241 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;
       }