mirror of https://git.kore.io/kore.git
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:
parent
4e2ca90095
commit
017bbff881
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue