diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-18 15:23:02 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-18 15:23:02 +0200 |
commit | 9837632ea985b87eb6aaa7f619a0b859fc6c40f6 (patch) | |
tree | f143461843ba2fdaa8e7499ebf52afda3eb08cd4 /src/qmail-qmqpd.c | |
parent | 7b4d3ab22988d021d5f12b81aec746f7e486fa52 (diff) |
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(); |