diff options
Diffstat (limited to 'src/qmail-qmqpd.c')
-rw-r--r-- | src/qmail-qmqpd.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/qmail-qmqpd.c b/src/qmail-qmqpd.c index 4a2bc66..fc994c9 100644 --- a/src/qmail-qmqpd.c +++ b/src/qmail-qmqpd.c @@ -101,7 +101,6 @@ void identify() } char buf[BUFSIZE_LINE]; // sender/recipient buffer -char bufd[BUFSIZE_MESS]; // temporary data buffer char strnum[FMT_ULONG]; int getbuf() @@ -130,7 +129,7 @@ int main() char *result; unsigned long qp; unsigned long len; - unsigned long dlen; + char ch; sig_pipeignore(); sig_alarmcatch(resources); @@ -146,10 +145,9 @@ int main() identify(); while (len > 0) { /* XXX: could speed this up; done */ - dlen = (len < BUFSIZE_LINE) ? len : BUFSIZE_LINE; - buffer_get(&bi,bufd,dlen); - qmail_put(&qq,bufd,dlen); - len -= dlen; + getbyte(&ch); + --len; + qmail_put(&qq,&ch,1); } getcomma(); |