commit | 12ed333714db59dacf056cda91f5d697e73949ba | [log] [tgz] |
---|---|---|
author | Glenn L McGrath <bug1@ihug.co.nz> | Fri Aug 06 00:58:53 2004 +0000 |
committer | Glenn L McGrath <bug1@ihug.co.nz> | Fri Aug 06 00:58:53 2004 +0000 |
tree | 355930b53ef8ed39e3dca75584075e8a7f1389d3 | |
parent | 12de6cf0d791bff627a6071519b71c19240aa1ce [diff] [blame] |
Part of patch from William Barsse, fixes a problem with unescaped %.
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 94376fe..c908b59 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c
@@ -104,7 +104,7 @@ } if (log_buffer[i] == '\n') { log_buffer[i] = '\0'; /* zero terminate this message */ - syslog(priority, start); + syslog(priority, "%s", start); start = &log_buffer[i + 1]; priority = LOG_INFO; }