diff options
| author | David Greenman <dg@FreeBSD.org> | 1995-08-30 07:33:30 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1995-08-30 07:33:30 +0000 |
| commit | d56b71ad20a7bfa121034a7093f873e3ff5c03cc (patch) | |
| tree | f190afa147bfdcfaf94e198595e5f2a867d186e5 /lib/libc/gen | |
| parent | f6cc2b861fac23e8bab545cd63186bbf3474ea49 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen')
| -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 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) |
