aboutsummaryrefslogtreecommitdiffstats
path: root/lib/log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/log.cc')
-rw-r--r--lib/log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log.cc b/lib/log.cc
index 321de6a..fada4f5 100644
--- a/lib/log.cc
+++ b/lib/log.cc
@@ -37,7 +37,7 @@ int logbuf::overflow(int c) {
*ptr++ = '\n';
*ptr = '\0';
if (_on)
- syslog(_level, buf);
+ syslog(_level, "%s", buf);
else if (_fd != -1)
write(_fd, buf, len + 1);
ptr = buf;