From 12ed333714db59dacf056cda91f5d697e73949ba Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Fri, 6 Aug 2004 00:58:53 +0000 Subject: Part of patch from William Barsse, fixes a problem with unescaped %. --- sysklogd/klogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysklogd') 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; } -- cgit v1.2.3