nightmaremail

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

commit 5ad52b67b8dd5e0d485771d345b5b92cdb948b41
parent 4fb0feda816f055d3b2e692baab18cf14af168d4
Author: Amitai Schleier <schmonz-web-git@schmonz.com>
Date:   Thu, 17 Dec 2020 10:32:59 +0100

Make substdio_get look more like substdio_bget.

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

diff --git a/substdi.c b/substdi.c @@ -59,7 +59,7 @@ ssize_t substdio_get(substdio *s, char *buf, size_t len) ssize_t r; if (s->p > 0) return getthis(s,buf,len); - if (s->n <= len) return oneread(s->op,s->fd,buf,len); + r = s->n; if (r <= len) return oneread(s->op,s->fd,buf,len); r = substdio_feed(s); if (r == 0 || r == -1) return r; return getthis(s,buf,len);