]> git.ipfire.org Git - thirdparty/openssl.git/commit
put_str: Use memcpy instead of strncpy
authorTomas Mraz <tomas@openssl.org>
Wed, 22 Jun 2022 10:36:02 +0000 (12:36 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 23 Jun 2022 13:44:19 +0000 (15:44 +0200)
commit5ad3e76c23576b2e216463bfe43d005a3e09defc
treec7d3c3606f947eb4466af8cdfdfcb66cc1e62c77
parente22ea36fa8296b402348da8f5ab5e258be8402cf
put_str: Use memcpy instead of strncpy

This fixes a warning from latest gcc.

There is no point in using strncpy here as we
intentionally copy only the string contents without
the terminating NUL. The len is set from strlen().

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/18627)
crypto/property/property_parse.c