aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-20 17:10:30 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-20 17:14:17 +0000
commitd12f1f8c95c37b57281d52ac0af5d00ae68d5dc0 (patch)
treeea52a1caffcf398fa66fc7e36434fd22769b7f46 /src/libutil/str_util.c
parent26b115373372d18404febaf8b9d480e83887d799 (diff)
downloadrspamd-d12f1f8c95c37b57281d52ac0af5d00ae68d5dc0.tar.gz
rspamd-d12f1f8c95c37b57281d52ac0af5d00ae68d5dc0.zip
[Minor] Fix spaces encoding in QP
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r--src/libutil/str_util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index 7a94a4df1..37250c6fc 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -1954,8 +1954,7 @@ rspamd_encode_qp2047_buf (const gchar *in, gsize inlen,
*o++ = c;
}
else if (c == ' ') {
- *o++ = "_";
- in++;
+ *o++ = '_';
}
else if (end - o >= 3){
*o++ = '=';