aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2004-08-06 00:58:53 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2004-08-06 00:58:53 +0000
commit12ed333714db59dacf056cda91f5d697e73949ba (patch)
tree355930b53ef8ed39e3dca75584075e8a7f1389d3 /sysklogd
parent12de6cf0d791bff627a6071519b71c19240aa1ce (diff)
downloadbusybox-12ed333714db59dacf056cda91f5d697e73949ba.tar.gz
Part of patch from William Barsse, fixes a problem with unescaped %.
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/klogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index 94376fe52..c908b593c 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -104,7 +104,7 @@ static void doKlogd(const int console_log_level)
}
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;
}