summaryrefslogtreecommitdiff
path: root/src/qmail-qmqpd.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-18 15:23:02 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-18 15:23:02 +0200
commit9837632ea985b87eb6aaa7f619a0b859fc6c40f6 (patch)
treef143461843ba2fdaa8e7499ebf52afda3eb08cd4 /src/qmail-qmqpd.c
parent7b4d3ab22988d021d5f12b81aec746f7e486fa52 (diff)
update to 4.3.10HEADmaster
Diffstat (limited to 'src/qmail-qmqpd.c')
-rw-r--r--src/qmail-qmqpd.c10
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();