diff --git a/test/api.c b/test/api.c index cc6ca6d..f2ef7e2 100644 --- a/test/api.c +++ b/test/api.c @@ -37,9 +37,9 @@ int main(int argc, char *argv[]) openlog(ident, LOG_NOWAIT, facility); if (v1) - syslogp(severity, "MSGID", NULL, msg); + syslogp(severity, "MSGID", NULL, "%s", msg); else - syslog(severity, msg); + syslog(severity, "%s", msg); if (ident) closelog();