From: Bernd Edlinger Date: Sat, 23 Jun 2018 20:17:19 +0000 (+0200) Subject: Fix a new gcc-9 warning [-Wstringop-truncation] X-Git-Tag: OpenSSL_1_1_1-pre9~240 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dc6c374bdb4872f6d5d727e73a2ed834e972842c;p=oweals%2Fopenssl.git Fix a new gcc-9 warning [-Wstringop-truncation] Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/6581) --- diff --git a/crypto/bio/bss_log.c b/crypto/bio/bss_log.c index 0376919017..4324f24126 100644 --- a/crypto/bio/bss_log.c +++ b/crypto/bio/bss_log.c @@ -200,7 +200,7 @@ static int slg_write(BIO *b, const char *in, int inl) BIOerr(BIO_F_SLG_WRITE, ERR_R_MALLOC_FAILURE); return 0; } - strncpy(buf, in, inl); + memcpy(buf, in, inl); buf[inl] = '\0'; i = 0;