mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
fix printf format-security warning.
warning: format string is not a string literal (potentially insecure) [-Wformat-security]
This commit is contained in:
parent
302dc2bea3
commit
bc7b5844a9
1 changed files with 2 additions and 2 deletions
|
|
@ -1195,7 +1195,7 @@ ARDOUR_UI::update_sample_rate (framecnt_t)
|
|||
|
||||
if (!AudioEngine::instance()->connected()) {
|
||||
|
||||
snprintf (buf, sizeof (buf), _("Audio: <span foreground=\"red\">none</span>"));
|
||||
snprintf (buf, sizeof (buf), "%s", _("Audio: <span foreground=\"red\">none</span>"));
|
||||
|
||||
} else {
|
||||
|
||||
|
|
@ -1203,7 +1203,7 @@ ARDOUR_UI::update_sample_rate (framecnt_t)
|
|||
|
||||
if (rate == 0) {
|
||||
/* no sample rate available */
|
||||
snprintf (buf, sizeof (buf), _("Audio: <span foreground=\"red\">none</span>"));
|
||||
snprintf (buf, sizeof (buf), "%s", _("Audio: <span foreground=\"red\">none</span>"));
|
||||
} else {
|
||||
|
||||
if (fmod (rate, 1000.0) != 0.0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue