summaryrefslogtreecommitdiff
path: root/src/qmail-todo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmail-todo.c')
-rw-r--r--src/qmail-todo.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/qmail-todo.c b/src/qmail-todo.c
index 6b6e1d4..0abb10e 100644
--- a/src/qmail-todo.c
+++ b/src/qmail-todo.c
@@ -39,6 +39,7 @@ char strnum[FMT_ULONG];
/* XXX not good, if qmail-send.c changes this has to be updated */
#define CHANNELS 2
+#define BUF_CHANNELS 1024
char *chanaddr[CHANNELS] = { "local/", "remote/" };
datetime_sec recent;
@@ -137,8 +138,10 @@ int rewrite(char *recip)
/* this file is not so long --------------------------------- COMMUNICATION */
-buffer toqc; char toqcbuf[1024];
-buffer fromqc; char fromqcbuf[1024];
+buffer toqc;
+char toqcbuf[BUFSIZE_LINE];
+buffer fromqc;
+char fromqcbuf[BUFSIZE_LINE];
stralloc comm_buf = {0};
int comm_pos;
int fdout = -1;
@@ -187,7 +190,7 @@ void comm_init(void)
/* this is so stupid: NDELAY semantics should be default on write */
senddied(); /* drastic, but better than risking deadlock */
- while (!stralloc_ready(&comm_buf,1024)) nomem();
+ while (!stralloc_ready(&comm_buf,BUF_CHANNELS)) nomem();
}
int comm_canwrite(void)
@@ -337,7 +340,7 @@ readsubdir todosubdir;
stralloc todoline = {0};
char todobuf[BUFSIZE_MESS];
char todobufinfo[BUFSIZE_MESS];
-char todobufchan[CHANNELS][1024];
+char todobufchan[CHANNELS][BUF_CHANNELS];
void todo_init(void)
{