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 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;
       }