mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Update misc.c
Allocate extra byte for null termination of string
This commit is contained in:
parent
cfecb4a5f5
commit
27138edd55
@ -823,7 +823,7 @@ b64_decode(int *dstlen, const char *src)
|
||||
|
||||
len = AV_BASE64_DECODE_SIZE(strlen(src));
|
||||
|
||||
CHECK_NULL(L_MISC, out = calloc(1, len));
|
||||
CHECK_NULL(L_MISC, out = calloc(1, len+1));
|
||||
|
||||
ret = av_base64_decode(out, src, len);
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user