040-xshared-Fix-build-for-Werror-format-security.patch 660 B

1234567891011121314151617181920212223
  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: [PATCH] xshared: Fix build for -Werror=format-security
  5. Gcc complains about the omitted format string.
  6. Signed-off-by: Phil Sutter <phil@nwl.cc>
  7. ---
  8. iptables/xshared.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. --- a/iptables/xshared.c
  11. +++ b/iptables/xshared.c
  12. @@ -1307,7 +1307,7 @@ static void check_empty_interface(struct
  13. return;
  14. if (args->family != NFPROTO_ARP)
  15. - xtables_error(PARAMETER_PROBLEM, msg);
  16. + xtables_error(PARAMETER_PROBLEM, "%s", msg);
  17. fprintf(stderr, "%s", msg);
  18. }