Fix a new gcc-9 warning [-Wstringop-truncation]
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6581)
This commit is contained in:
parent
f223e8fd1c
commit
dc6c374bdb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue