]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xshared: Fix build for -Werror=format-security
authorPhil Sutter <phil@nwl.cc>
Fri, 13 May 2022 14:51:58 +0000 (16:51 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 13 May 2022 15:02:43 +0000 (17:02 +0200)
Gcc complains about the omitted format string.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xshared.c

index fae5ddd5df93ed7af760d3295a83ad3b0ca114d6..a8512d3808154c717f76cff42e9eca5abe094d07 100644 (file)
@@ -1307,7 +1307,7 @@ static void check_empty_interface(struct xtables_args *args, const char *arg)
                return;
 
        if (args->family != NFPROTO_ARP)
-               xtables_error(PARAMETER_PROBLEM, msg);
+               xtables_error(PARAMETER_PROBLEM, "%s", msg);
 
        fprintf(stderr, "%s", msg);
 }