diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-26 14:05:14 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-26 14:05:14 +0000 |
commit | d9c07e3ba91c88864275d66fc024765e8390ba6d (patch) | |
tree | 644d3cb42a57ca0ba23daa277f647f499409da6b /src/lua/lua_util.c | |
parent | 4e3ac80a4680a10430e3ec798d9c5636bc2f2131 (diff) | |
download | rspamd-d9c07e3ba91c88864275d66fc024765e8390ba6d.tar.gz rspamd-d9c07e3ba91c88864275d66fc024765e8390ba6d.zip |
[Minor] Fix lua tokenize function
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r-- | src/lua/lua_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 1f9b84c85..ec22b8a9a 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -1154,7 +1154,7 @@ lua_util_tokenize_text (lua_State *L) for (i = 0; i < res->len; i ++) { w = &g_array_index (res, rspamd_stat_token_t, i); - lua_pushlstring (L, w->stemmed.begin, w->stemmed.len); + lua_pushlstring (L, w->original.begin, w->original.len); lua_rawseti (L, -2, i + 1); } } |