aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-06 02:32:50 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-06 02:32:50 +0000
commit7df5bfca79c8ea68f1b80c1f2463d189352134f1 (patch)
treec78740afea1c1fa1405faf848f4302f5b452c870 /src/libutil/str_util.c
parent0ca1ac02f452d992ddc9a4ce1b590aab350358e8 (diff)
downloadrspamd-7df5bfca79c8ea68f1b80c1f2463d189352134f1.tar.gz
rspamd-7df5bfca79c8ea68f1b80c1f2463d189352134f1.zip
Fix some errors
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r--src/libutil/str_util.c4
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;