mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
01fe9100e2
commit
7ee23a046c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue