kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 017bbff881e7b5c2ea96642009ca83864f308b20
parent 4e2ca90095df2bacf06e72cdbe3c673713650578
Author: Daniel Fahlgren <daniel@fahlgren.se>
Date:   Thu, 14 Jan 2021 13:31:27 +0100

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.

Diffstat:
src/utils.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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;