On 18/11/2026 06:26, Collin Funk wrote:
From: Ismail Ramzi <[email protected]>

* src/tac.c (INITIAL_READSIZE, WRITESIZE): Define to BUFSIZ.
---
  src/tac.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tac.c b/src/tac.c
index 1845791ab..e39b26b8e 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -58,10 +58,10 @@ tac -r -s '.\|
/* The number of bytes per atomic read. */
-#define INITIAL_READSIZE 8192
+#define INITIAL_READSIZE BUFSIZ
/* The number of bytes per atomic write. */
-#define WRITESIZE 8192
+#define WRITESIZE BUFSIZ
/* The string that separates the records of the file. */
  static char const *separator = "\n";

In retrospect this is a bad suggestion from me.
BUFSIZ is too variable and based on stdio which tac doesn't use.
So it's probably best to drop this.

Reply via email to