diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-06 02:32:50 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-06 02:32:50 +0000 |
commit | 7df5bfca79c8ea68f1b80c1f2463d189352134f1 (patch) | |
tree | c78740afea1c1fa1405faf848f4302f5b452c870 /src/libutil/str_util.c | |
parent | 0ca1ac02f452d992ddc9a4ce1b590aab350358e8 (diff) | |
download | rspamd-7df5bfca79c8ea68f1b80c1f2463d189352134f1.tar.gz rspamd-7df5bfca79c8ea68f1b80c1f2463d189352134f1.zip |
Fix some errors
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r-- | src/libutil/str_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index c8f4088e1..f4bd75d69 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -1346,7 +1346,7 @@ rspamd_encode_hex_buf (const guchar *in, gsize inlen, gchar *out, } if (o <= end) { - return (o - end); + return (o - out); } return -1; @@ -1413,7 +1413,7 @@ rspamd_decode_hex_buf (const gchar *in, gsize inlen, } if (o <= end) { - return (o - end); + return (o - out); } return -1; |