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)"));
This commit is contained in:
Wim Taymans 2021-04-14 17:57:34 +02:00
parent 01fe9100e2
commit 7ee23a046c

View file

@ -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;