summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2018-06-23 22:17:19 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2018-06-24 18:05:49 +0200
commite78c4f531d44d2454ba44b9de615920d340e77ce (patch)
treeac2c2c319355b83ef73a61ac4b2b758660ac3b7f /crypto
parent8a8534620da8e13c8a7ab123ecd7fc0226f999bf (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)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/bss_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bss_log.c b/crypto/bio/bss_log.c
index 1283a525b4..69c6e20fc4 100644
--- a/crypto/bio/bss_log.c
+++ b/crypto/bio/bss_log.c
@@ -242,7 +242,7 @@ static int MS_CALLBACK slg_write(BIO *b, const char *in, int inl)
if ((buf = (char *)OPENSSL_malloc(inl + 1)) == NULL) {
return (0);
}
- strncpy(buf, in, inl);
+ memcpy(buf, in, inl);
buf[inl] = '\0';
i = 0;