From 7ee23a046c7ebe71e68b95675a8cf3f087dcb968 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 14 Apr 2021 17:57:34 +0200 Subject: [PATCH] acp: avoid warning for i18n string spa/plugins/alsa/acp/channelmap.h:466:9: warning: format not a string literal and no format arguments [-Wformat-security] 466 | pa_snprintf(s, l, _("(invalid)")); --- spa/plugins/alsa/acp/channelmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/acp/channelmap.h b/spa/plugins/alsa/acp/channelmap.h index 47f964aa5..1d56bca5d 100644 --- a/spa/plugins/alsa/acp/channelmap.h +++ b/spa/plugins/alsa/acp/channelmap.h @@ -463,7 +463,7 @@ static inline char* pa_channel_map_snprint(char *s, size_t l, const pa_channel_m bool first = true; char *e; if (!pa_channel_map_valid(map)) { - pa_snprintf(s, l, _("(invalid)")); + pa_snprintf(s, l, "%s", _("(invalid)")); return s; } *(e = s) = 0;