Hi

On Tue, Jun 8, 2021 at 3:44 PM Arne Schwabe <a...@rfc2549.org> wrote:

> clang does not like if the format argument of printf like function
> is not a string literal:
>
> warning: format string is not a string literal (potentially insecure)
>
> Use "%s" as string literal to silence the warning.
>

Format string is often not a string literal -- we have many other such
usages in the source, though probably none without a third argument. grep
for fmt, for example.  Here str is a const char *, what more do they want?
Would const char * const str work?

Selva
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to