diff options
-rw-r--r-- | lib/libc/gen/syslog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c index 6eb779b..41f0e9a 100644 --- a/lib/libc/gen/syslog.c +++ b/lib/libc/gen/syslog.c @@ -121,8 +121,7 @@ vsyslog(pri, fmt, ap) /* Build the message. */ (void)time(&now); p = tbuf + sprintf(tbuf, "<%d>", pri); - p += strftime(p, sizeof (tbuf) - (p - tbuf), "%h %e %T ", - localtime(&now)); + p += sprintf(p, "%.15s ", ctime(&now) + 4); if (LogStat & LOG_PERROR) stdp = p; if (LogTag == NULL) |