summaryrefslogtreecommitdiff
path: root/src/columnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/columnt.c')
-rw-r--r--src/columnt.c7
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();