diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-08-06 00:58:53 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-08-06 00:58:53 +0000 |
commit | 41dfb007739f43adaf22fcaaaccec5dea8967b40 (patch) | |
tree | 355930b53ef8ed39e3dca75584075e8a7f1389d3 | |
parent | f60b81060622dce74c0fc15f133e3dce756c44cd (diff) | |
download | busybox-w32-41dfb007739f43adaf22fcaaaccec5dea8967b40.tar.gz busybox-w32-41dfb007739f43adaf22fcaaaccec5dea8967b40.tar.bz2 busybox-w32-41dfb007739f43adaf22fcaaaccec5dea8967b40.zip |
Part of patch from William Barsse, fixes a problem with unescaped %.
git-svn-id: svn://busybox.net/trunk/busybox@9063 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | sysklogd/klogd.c | 2 |
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) | |||
104 | } | 104 | } |
105 | if (log_buffer[i] == '\n') { | 105 | if (log_buffer[i] == '\n') { |
106 | log_buffer[i] = '\0'; /* zero terminate this message */ | 106 | log_buffer[i] = '\0'; /* zero terminate this message */ |
107 | syslog(priority, start); | 107 | syslog(priority, "%s", start); |
108 | start = &log_buffer[i + 1]; | 108 | start = &log_buffer[i + 1]; |
109 | priority = LOG_INFO; | 109 | priority = LOG_INFO; |
110 | } | 110 | } |