Fix build.

This commit is contained in:
Ghislain MARY 2018-04-11 16:04:06 +02:00
parent 6b19ae1b6f
commit 88a5521783

View file

@ -889,7 +889,7 @@ static int line_get_value(const char *input, const char *key, char *value, size_
size_t len;
if (!end) len = strlen(input);
else len = end + 1 - input;
else len = (size_t)(end + 1 - input);
*read = len;
strncpy(line, input, MIN(len, sizeof(line)));