rewind logged messages so it does not crash...

This commit is contained in:
yrutschle committed 2020-06-19 23:01:25 +02:00
1 parent c595aadb4d
commit 408c5741f8
1 file changed
+2
+2
View File
@@ -561,7 +561,9 @@ void log_message(int type, const char* msg, ...)
va_start(ap, msg);
if (cfg.foreground)
vfprintf(stderr, msg, ap);
va_end(ap);
va_start(ap, msg);
vsyslog(type, msg, ap);
va_end(ap);
}