Part of patch from William Barsse, fixes a problem with unescaped %.
authorGlenn L McGrath <bug1@ihug.co.nz>
Fri, 6 Aug 2004 00:58:53 +0000 (00:58 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Fri, 6 Aug 2004 00:58:53 +0000 (00:58 -0000)
sysklogd/klogd.c

index 94376fe52f9cb1f3a9af1d713569700164a7b584..c908b593c717e55d6e3e9484c5178e3fea648067 100644 (file)
@@ -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;
                        }