]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Use snprintf instead of sprintf for get_ssl_library_version
authorArne Schwabe <arne@rfc2549.org>
Mon, 25 Mar 2024 12:50:52 +0000 (13:50 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 25 Mar 2024 15:31:27 +0000 (16:31 +0100)
commit6a60d1bef424088df55f4d07efd45ce080fc7132
tree8d19534fe651a3581cbdf85886e3739cb17c211d
parent3fdf5aa04f7b96a3b7110f75306306ac5d7ed5fd
Use snprintf instead of sprintf for get_ssl_library_version

This is avoid a warning/error (when using -Werror) under current macOS
of sprintf:

   __deprecated_msg("This function is provided for compatibility
   reasons only.  Due to security concerns inherent in the design
   of sprintf(3), it is highly recommended that you use snprintf(3)
   instead.")

Change-Id: I3c6fd36eb9daee9244d6dc6d9f22de1c5cf9d039
Signed-off-by: Arne Schwabe <arne-openvpn@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20240325125052.14135-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28458.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_mbedtls.c