]> git.ipfire.org Git - thirdparty/openvpn.git/commit
options.c: fix format security error when compiling without optimization
authorFrank Lichtenheld <frank@lichtenheld.com>
Wed, 28 Dec 2022 11:07:52 +0000 (12:07 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 28 Dec 2022 21:41:30 +0000 (22:41 +0100)
commit24fc4ce25432a42170477f21133bb0f25a8a860d
tree2a9ea448fdc478ca464ef8c01d504444ae33e68e
parentc7416160fb2e5a66d5801e4b789751a7480e6384
options.c: fix format security error when compiling without optimization

error: format not a string literal and no format arguments
[-Werror=format-security]
 2309 |     msg(M_USAGE, str);

Found by accident, since it only happens without optimization.
Seems the compiler can figure out that this is harmless when
thinking a bit harder about it. Fix anyway.

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