]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix spaces encoding in QP
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 20 Dec 2016 17:10:30 +0000 (17:10 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 20 Dec 2016 17:14:17 +0000 (17:14 +0000)
src/libutil/str_util.c

index 7a94a4df1e864667432b555e8c37ab2893e8349d..37250c6fc3bb7d9642daffc31c5d9782b2ad17ee 100644 (file)
@@ -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++ = '=';