projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a new gcc-9 warning [-Wstringop-truncation]
[openssl.git]
/
crypto
/
bio
/
bss_log.c
diff --git
a/crypto/bio/bss_log.c
b/crypto/bio/bss_log.c
index 037691901755bb0cfea9def63788a3c8421d2e80..4324f24126818d768f5896ec717577de019b85a2 100644
(file)
--- 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;
}
-
strn
cpy(buf, in, inl);
+
mem
cpy(buf, in, inl);
buf[inl] = '\0';
i = 0;