scribo

Email-based phlog generator
git clone git://git.z3bra.org/scribo.git
Log | Files | Refs

commit 14e99223e1d8bb592c4622a27ca14ddc0ce082ce
parent a96f19a81d0a2741adbd310e0535cf149b7dd8d9
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue,  8 Sep 2020 17:59:53 +0200

Initialize b64/bufsiz value for proper getline() handling

Diffstat:
Mscribo.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/scribo.c b/scribo.c @@ -190,6 +190,9 @@ write_b64(FILE *in, FILE *out) ssize_t len; char *msg, *b64; + b64 = NULL; + bufsiz = 0; + while ((len = getline(&b64, &bufsiz, in)) > 0); len = base64_unfold(b64, bufsiz);