From 48b184477ee12cfc2cdeb3975231c011e415e22c Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 10 Apr 2019 11:13:48 +0200 Subject: [PATCH] Fix bad call to strncat() --- rdesktop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdesktop.c b/rdesktop.c index ce4acdc..4148140 100644 --- a/rdesktop.c +++ b/rdesktop.c @@ -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)