diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-29 13:21:53 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-29 13:21:53 +0000 |
| commit | 85b3ab58874f410e849d3e83bdd835f19016250d (patch) | |
| tree | 6290b1050706f08e73f3f5ce80698a1f854e95f8 /lib/libc/gen/syslog.c | |
| parent | 4f898a4b3884d8f07b9ed85716550998a3e9cd71 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/syslog.c')
| -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) |
