From 017bbff881e7b5c2ea96642009ca83864f308b20 Mon Sep 17 00:00:00 2001 From: Daniel Fahlgren Date: Thu, 14 Jan 2021 13:31:27 +0100 Subject: [PATCH] Neither 'in' not 'pad' are format specifiers. Replace with a call to kore_buf_append() instead. At best 'len' is unused, but if 'in' contains a percentage sign bad things might happen. --- src/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.c b/src/utils.c index 678b6bf..480eba4 100644 --- a/src/utils.c +++ b/src/utils.c @@ -804,8 +804,8 @@ utils_base64_decode(const char *in, u_int8_t **out, size_t *olen, } kore_buf_init(&buf, len + plen); - kore_buf_appendf(&buf, in, len); - kore_buf_appendf(&buf, pad, plen); + kore_buf_append(&buf, in, len); + kore_buf_append(&buf, pad, plen); len = len + plen; ptr = (const char *)buf.data;