Fix a build failure due to a misused format string.

This fixes builds with -Werror=format-security.

Signed-off-by: Jordi Mallach <jordi@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Jordi Mallach 2013-05-15 19:12:56 +02:00 committed by Takashi Iwai
parent 093a371a27
commit f2f5f7a7d3

View file

@ -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, ...)