]> git.ipfire.org Git - thirdparty/openvpn.git/commit
iservice: Resolve MSVC C4996 warnings
authorSimon Rozman <simon@rozman.si>
Sun, 21 Mar 2021 14:46:27 +0000 (15:46 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 21 Mar 2021 17:12:14 +0000 (18:12 +0100)
commitdf471f4de8af0cbcf23a4e36910554bea7bd9058
treefae905e9574aa018bffcc651d2a525da3438d6cb
parent709c3810a1d67e2c4049e852529a0a0d1338c797
iservice: Resolve MSVC C4996 warnings

Lots of string functions were declared unsafe in favor of ..._s()
counterparts. However, the code already is careful about the buffer
size. Code analysis is just not smart enough (yet) to detect this.

The code was refactored to use ..._s() variants MSVC is considering as
"safe".

Signed-off-by: Simon Rozman <simon@rozman.si>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20210321144627.1621-5-simon@rozman.si>
URL: https://www.mail-archive.com/search?l=mid&q=20210321144627.1621-5-simon@rozman.si
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/automatic.c
src/openvpnserv/common.c
src/openvpnserv/interactive.c
src/openvpnserv/service.c