diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index d257d94900..a9ba330385 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -253,7 +253,7 @@ static void ossl_keylog_callback(const SSL *ssl, const char *line) if(!buf) return; } - strncpy(buf, line, linelen); + memcpy(buf, line, linelen); buf[linelen] = '\n'; buf[linelen + 1] = '\0';