Fix bad call to strncat()

This commit is contained in:
Pierre Ossman 2019-04-10 11:13:48 +02:00
parent cf95138c9b
commit 48b184477e

View File

@ -1790,7 +1790,7 @@ str_handle_lines(const char *input, char **rest, str_handle_lines_t linehandler,
buf[0] = '\0';
if (*rest)
STRNCPY(buf, *rest, buflen);
strncat(buf, input, inputlen);
strncat(buf, input, buflen);
p = buf;
while (1)