15 May
2013
15 May
'13
7:12 p.m.
This fixes builds with -Werror=format-security.
Signed-off-by: Jordi Mallach jordi@debian.org --- alsactl/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/alsactl/utils.c b/alsactl/utils.c index 7ac2db1..072c239 100644 --- a/alsactl/utils.c +++ b/alsactl/utils.c @@ -111,7 +111,7 @@ static void syslog_(int prio, const char *fcn, long line, buf[sizeof(buf)-1] = '\0'; vsnprintf(buf + strlen(buf), sizeof(buf)-strlen(buf), fmt, ap); buf[sizeof(buf)-1] = '\0'; - syslog(LOG_INFO, buf); + syslog(LOG_INFO, "%s", buf); }
void info_(const char *fcn, long line, const char *fmt, ...)
--
1.7.10.4