diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c index 6eb779b666cd..41f0e9a7108b 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)