  
          syslog_skip_date((char**) &buf);
          syslog_parse_identifier(&buf, &identifier, &pid);
-@@ -357,6 +469,7 @@ void server_process_syslog_message(
+@@ -357,6 +474,7 @@ void server_process_syslog_message(
  
          xsprintf(syslog_priority, "PRIORITY=%i", priority & LOG_PRIMASK);
          IOVEC_SET_STRING(iovec[n++], syslog_priority);

 int syslog_fixup_facility(int priority) _const_;
 
 size_t syslog_parse_identifier(const char **buf, char **identifier, char **pid);
-- 
2.7.4


         t = tv ? tv->tv_sec : ((time_t) (now(CLOCK_REALTIME) / USEC_PER_SEC));
-        tm = localtime(&t);
-        if (!tm)
-                return;
-        if (strftime(header_time, sizeof(header_time), "%h %e %T ", tm) <= 0)
+        if (!localtime_r(&t, &sm.timestamp))
                 return;
-        IOVEC_SET_STRING(iovec[n++], header_time);
 
         /* Third: identifier and PID */
