Skip to contentSkip to conversation

xshared: Fix build for -Werror=format-security

PATCH New Phil Sutter 1 participant 1 message May 13, 2022 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 xshared: Fix build for -Werror=format-security

Gcc complains about the omitted format string.

---
 iptables/xshared.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
iptables/xshared.c +1 -1
index fae5ddd5df93e..a8512d3808154 100644
@@ -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);
 }
Signature · 1 line
2.34.1