diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-06-23 22:17:19 +0200 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-06-24 18:04:45 +0200 |
commit | ad6edb21e1aa368e2e0d62659f124be67cab52a7 (patch) | |
tree | db80ecc8475c412dffe69e40edaa72eb90c4b226 | |
parent | 2ab5cb01d4d44f570b8e11384635149d38867eb2 (diff) |
Fix a new gcc-9 warning [-Wstringop-truncation]
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6581)
(cherry picked from commit dc6c374bdb4872f6d5d727e73a2ed834e972842c)
-rw-r--r-- | crypto/bio/bss_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bss_log.c b/crypto/bio/bss_log.c index 5221acc2e3..83dae64338 100644 --- a/crypto/bio/bss_log.c +++ b/crypto/bio/bss_log.c @@ -196,7 +196,7 @@ static int slg_write(BIO *b, const char *in, int inl) if ((buf = OPENSSL_malloc(inl + 1)) == NULL) { return (0); } - strncpy(buf, in, inl); + memcpy(buf, in, inl); buf[inl] = '\0'; i = 0; |