aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-16 12:58:47 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-16 13:01:14 +0000
commit2a22f706c2ee399e7932772be3ed94c47f487913 (patch)
tree109f54d2e2e1bf3169fb09bee6d8c9283e21fd04
parenta6d5d8a24b5f534077b82d2afcd1ebb9f3384798 (diff)
downloadrspamd-2a22f706c2ee399e7932772be3ed94c47f487913.tar.gz
rspamd-2a22f706c2ee399e7932772be3ed94c47f487913.zip
[Fix] Fix variable increment
-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);