don't out \r to syslog

This commit is contained in:
"Vladimir N. Oleynik" 2005-09-29 12:55:21 +00:00
parent bee9eb1a9d
commit 8e1bd4a05b

View File

@ -225,7 +225,7 @@ static void message(int device, const char *fmt, ...)
if (device & LOG) {
/* don`t out "\r\n" */
openlog(bb_applet_name, 0, LOG_DAEMON);
syslog(LOG_INFO, "%s", msg);
syslog(LOG_INFO, "%s", msg + 1);
closelog();
}