diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-18 14:55:05 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-18 14:55:05 +0200 |
commit | 25f74781424d5e13f0211c08cce8c2a1d60b9aec (patch) | |
tree | 92a1a19c59f8816dca604592d408184f48c3c4a3 /src/columnt.c | |
parent | f1b71c9fe7dbb4886588a036399cf5ebe16b7c47 (diff) |
update to 4.3.08
Diffstat (limited to 'src/columnt.c')
-rw-r--r-- | src/columnt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/columnt.c b/src/columnt.c index 9e4cf0e..b82f970 100644 --- a/src/columnt.c +++ b/src/columnt.c @@ -5,12 +5,11 @@ #include "stralloc.h" #include "exit.h" #include "readclose.h" +#include "qmail.h" #define WHO "columnt" -#define BSIZE 4096 - -char outbuf[BSIZE]; +char outbuf[BUFSIZE_MESS]; buffer bo = BUFFER_INIT(write,1,outbuf,sizeof(outbuf)); void nomem() { logmsg(WHO,111,FATAL,"out of memory"); } @@ -89,7 +88,7 @@ void split(void (*dofield)(), void (*doline)()) int main() { - if (readclose_append(0,&file,BSIZE) == -1) die_read(); + if (readclose_append(0,&file,BUFSIZE_MESS) == -1) die_read(); if (!file.len) _exit(0); if (file.s[file.len - 1] != '\n') if (!stralloc_append(&file,"\n")) nomem(); |