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.
This commit is contained in:
Daniel Fahlgren 2021-01-14 13:31:27 +01:00 committed by Joris Vink
parent 4e2ca90095
commit 017bbff881
1 changed files with 2 additions and 2 deletions

View File

@ -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;