summaryrefslogtreecommitdiffstats
path: root/crypto/bio
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:01:12 +0200
commitdc6c374bdb4872f6d5d727e73a2ed834e972842c (patch)
tree0eb5ff9a6b46f58a437a416202f0d517b91c37ed /crypto/bio
parentf223e8fd1c89d0e47e2acafe14d7f3a4e8a05742 (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)
Diffstat (limited to 'crypto/bio')
-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 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;