diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-14 11:40:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-14 11:40:11 +0100 |
commit | 734f2591003d9873bb614d10da6a120caf9c1560 (patch) | |
tree | 08b1ce3d90a75de0b50c6507216b1c6b76e9c1e5 /src/lua/lua_util.c | |
parent | f62f3e497c91eda02402966a990ec14ab60af66a (diff) | |
download | rspamd-734f2591003d9873bb614d10da6a120caf9c1560.tar.gz rspamd-734f2591003d9873bb614d10da6a120caf9c1560.zip |
[Minor] Fix stupid mistakes in string compare functions
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r-- | src/lua/lua_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index fe22aebe5..cb24cb983 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -1249,7 +1249,7 @@ lua_util_strcasecmp_utf8 (lua_State *L) gint ret = -1; str1 = lua_tolstring (L, 1, &len1); - str2 = lua_tolstring (L, 1, &len2); + str2 = lua_tolstring (L, 2, &len2); if (str1 && str2) { @@ -1276,7 +1276,7 @@ lua_util_strcasecmp_ascii (lua_State *L) gint ret = -1; str1 = lua_tolstring (L, 1, &len1); - str2 = lua_tolstring (L, 1, &len2); + str2 = lua_tolstring (L, 2, &len2); if (str1 && str2) { |