nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ae2c5ad2a0d85c1e4e1dc735086d95d65fe4483a
parent 9be587a211e5ca49605258890eef34b8ff36ac93
Author: Amitai Schleier <schmonz-web-git@schmonz.com>
Date:   Thu, 17 Dec 2020 09:41:22 +0100

Do 1-byte reads in the local idiom.

Diffstat:
Mqmail.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qmail.c b/qmail.c @@ -109,7 +109,7 @@ struct qmail *qq; if (!qq->flagerr) if (substdio_flush(&qq->ss) == -1) qq->flagerr = 1; close(qq->fde); substdio_fdbuf(&qq->ss,read,qq->fderr,qq->buf,sizeof(qq->buf)); - while (substdio_bget(&qq->ss,&ch,1) && len < 255) { + while (substdio_get(&qq->ss,&ch,1) > 0 && len < 255) { errstr[len] = ch; len++; }