aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libutil/logger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index 59e89158c..1fade8164 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -1139,11 +1139,11 @@ file_log_function (const gchar *module, const gchar *id,
}
- iov[r++].iov_base = (void *) &lf_chr;
+ iov[r].iov_base = (void *) &lf_chr;
iov[r++].iov_len = 1;
if (rspamd_log->flags & RSPAMD_LOG_FLAG_COLOR) {
- iov[r++].iov_base = "\033[0m";
+ iov[r].iov_base = "\033[0m";
iov[r++].iov_len = sizeof ("\033[0m") - 1;
/* Call helper (for buffering) */
file_log_helper (rspamd_log, iov, r, level_flags);