commit 8ae24c1: [Minor] Reduce remain

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Oct 25 16:21:09 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-10-25 17:15:06 +0100
URL: https://github.com/rspamd/rspamd/commit/8ae24c1e0b11c34e0c6a7c490769ea63762ba7a5 (HEAD -> master)

[Minor] Reduce remain

---
 src/libutil/str_util.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index cbd1fc005..7edb1b109 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -2252,6 +2252,7 @@ rspamd_decode_uue_buf (const gchar *in, gsize inlen,
 #define IS_DEC(c) ( (((c) - ' ') >= 0) && (((c) - ' ') <= 077 + 1) )
 #define CHAR_OUT(c) do { if (o < out_end) { *o++ = c; } else { return (-1); } } while(0)
 
+	remain -= pos;
 	p = p + pos;
 	SKIP_NEWLINE;
 


More information about the Commits mailing list