eet: fix interger overflow

CID 1256196
This commit is contained in:
Cedric BAIL 2015-04-25 20:14:26 +02:00
parent eaf9822094
commit 02bfb82da0
1 changed files with 1 additions and 1 deletions

View File

@ -1701,7 +1701,7 @@ _base64_dec(const char *file, int *size_ret)
if (tmp)
{
int len = _b64_dec(tmp, buf, end - buf);
size_t len = _b64_dec(tmp, buf, end - buf);
char *str = malloc(end - buf + 1);
strncpy(str, buf, end - buf);
str[end - buf] = 0;