(task_database_cue) Fix buffer overflow

This commit is contained in:
Higor Eurípedes 2015-11-16 20:44:27 -03:00
parent 3dcca7e060
commit dc3a561845

View File

@ -111,7 +111,7 @@ static ssize_t get_token(RFILE *fd, char *token, size_t max_len)
static int find_token(RFILE *fd, const char *token)
{
int tmp_len = strlen(token);
char *tmp_token = (char*)calloc(tmp_len, 1);
char *tmp_token = (char*)calloc(tmp_len+1, 1);
if (!tmp_token)
return -1;