aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-16 17:56:55 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-16 17:56:55 +0000
commitda7970857f420b4598e62f424e99f6d87a0035a3 (patch)
treeb1e445da6e153025befe4a436e0a90aff08d6851 /src/lua/lua_task.c
parent98ef56b2b103b07f7678cc47cd0ccbb0a48c5616 (diff)
downloadrspamd-da7970857f420b4598e62f424e99f6d87a0035a3.tar.gz
rspamd-da7970857f420b4598e62f424e99f6d87a0035a3.zip
[Rework|Minor] Further fixes for the new mime parser
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 96cb0e4b7..68d9b9704 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -3339,7 +3339,7 @@ lua_image_get_filename (lua_State *L)
struct rspamd_image *img = lua_check_image (L);
if (img != NULL && img->filename != NULL) {
- lua_pushstring (L, img->filename);
+ lua_pushlstring (L, img->filename->begin, img->filename->len);
}
else {
return luaL_error (L, "invalid arguments");
@@ -3465,7 +3465,7 @@ lua_archive_get_filename (lua_State *L)
struct rspamd_archive *arch = lua_check_archive (L);
if (arch != NULL) {
- lua_pushstring (L, arch->archive_name);
+ lua_pushlstring (L, arch->archive_name->begin, arch->archive_name->len);
}
else {
return luaL_error (L, "invalid arguments");