diff options
Diffstat (limited to 'libc/misc/syslog')
-rw-r--r-- | libc/misc/syslog/syslog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c index 53a00f86d..b3c53ff7d 100644 --- a/libc/misc/syslog/syslog.c +++ b/libc/misc/syslog/syslog.c @@ -224,7 +224,7 @@ vsyslog( int pri, const char *fmt, va_list ap ) */ end = tbuf + sizeof(tbuf) - 1; - errno = saved_errno; + __set_errno(saved_errno); p += vsnprintf(p, end - p, fmt, ap); if (p >= end || p < head_end) { /* Returned -1 in case of error... */ static char truncate_msg[12] = "[truncated] "; |