Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame^] | 1 | From b72eb12ea5a61df0655ad99d5048994e916be83a Mon Sep 17 00:00:00 2001 |
| 2 | From: Phil Sutter <phil@nwl.cc> |
| 3 | Date: Fri, 13 May 2022 16:51:58 +0200 |
| 4 | Subject: xshared: Fix build for -Werror=format-security |
| 5 | |
| 6 | Gcc complains about the omitted format string. |
| 7 | |
| 8 | Signed-off-by: Phil Sutter <phil@nwl.cc> |
| 9 | Upstream-Status: Backport |
| 10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 11 | --- |
| 12 | iptables/xshared.c | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/iptables/xshared.c b/iptables/xshared.c |
| 16 | index fae5ddd5..a8512d38 100644 |
| 17 | --- a/iptables/xshared.c |
| 18 | +++ b/iptables/xshared.c |
| 19 | @@ -1307,7 +1307,7 @@ static void check_empty_interface(struct xtables_args *args, const char *arg) |
| 20 | return; |
| 21 | |
| 22 | if (args->family != NFPROTO_ARP) |
| 23 | - xtables_error(PARAMETER_PROBLEM, msg); |
| 24 | + xtables_error(PARAMETER_PROBLEM, "%s", msg); |
| 25 | |
| 26 | fprintf(stderr, "%s", msg); |
| 27 | } |
| 28 | -- |
| 29 | cgit v1.2.3 |
| 30 | |