mbedTLS get_ciphersuites_from_string(): Use strlcpy() instead of strncpy()
authorFabian Keil <fk@fabiankeil.de>
Wed, 30 Jun 2021 12:58:12 +0000 (14:58 +0200)
committerFabian Keil <fk@fabiankeil.de>
Mon, 5 Jul 2021 10:32:37 +0000 (12:32 +0200)
commitb61d113242ae011a41e56ccc915644ce1716ea88
tree2fdb890712d89fe9c3851b259b2a5fa9b872b24b
parent696b7dcba6dc7173e6a54ad4270bfd6c9b432f64
mbedTLS get_ciphersuites_from_string(): Use strlcpy() instead of strncpy()

Previously the terminating NUL wasn't copied which resulted
in a compiler warning. This didn't cause actual problems as
the target buffer was initialized by zalloc_or_die() so the
last byte of the target buffer was NUL already.

Actually copying the terminating NUL seems clearer, though.

Reported by: Lee
ssl.c