aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_trie.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-07 18:20:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-07 18:20:45 +0100
commit0ae6d8f0d0f16466121c66627afe299555fccb3a (patch)
treeebfe2199cf72d1d657c71e44a66505fd64635cc8 /src/lua/lua_trie.c
parent75a8e1fa3713588d723e05b92686346333800f78 (diff)
downloadrspamd-0ae6d8f0d0f16466121c66627afe299555fccb3a.tar.gz
rspamd-0ae6d8f0d0f16466121c66627afe299555fccb3a.zip
Indicies in lua starts from 1.
Diffstat (limited to 'src/lua/lua_trie.c')
-rw-r--r--src/lua/lua_trie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_trie.c b/src/lua/lua_trie.c
index 3a07fa3b1..35abdff3d 100644
--- a/src/lua/lua_trie.c
+++ b/src/lua/lua_trie.c
@@ -134,7 +134,7 @@ lua_trie_callback (int strnum, int textpos, void *context)
/* Function */
lua_pushvalue (L, 3);
- lua_pushnumber (L, strnum);
+ lua_pushnumber (L, strnum + 1);
lua_pushnumber (L, textpos);
if (lua_pcall (L, 2, 1, 0) != 0) {