Part of patch from William Barsse, fixes a problem with unescaped %.
This commit is contained in:
parent
12de6cf0d7
commit
12ed333714
@ -104,7 +104,7 @@ static void doKlogd(const int console_log_level)
|
|||||||
}
|
}
|
||||||
if (log_buffer[i] == '\n') {
|
if (log_buffer[i] == '\n') {
|
||||||
log_buffer[i] = '\0'; /* zero terminate this message */
|
log_buffer[i] = '\0'; /* zero terminate this message */
|
||||||
syslog(priority, start);
|
syslog(priority, "%s", start);
|
||||||
start = &log_buffer[i + 1];
|
start = &log_buffer[i + 1];
|
||||||
priority = LOG_INFO;
|
priority = LOG_INFO;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user