aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2020-11-16 20:13:03 +0200
committerAndrew Lewis <nerf@judo.za.org>2020-11-16 20:13:03 +0200
commit68badebdac453aef0f8bc5af96e9a289aefc02e5 (patch)
treeb746ea582bd0e32c8a85af93c264ad2d8158045b /lualib/lua_magic
parent36963c3fa3b053812dbb9abea386b27a78a5d062 (diff)
downloadrspamd-68badebdac453aef0f8bc5af96e9a289aefc02e5.tar.gz
rspamd-68badebdac453aef0f8bc5af96e9a289aefc02e5.zip
[Minor] rspamd_text:byte() metamethod
Diffstat (limited to 'lualib/lua_magic')
-rw-r--r--lualib/lua_magic/heuristics.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua
index 6822abe1e..02bc2b4a2 100644
--- a/lualib/lua_magic/heuristics.lua
+++ b/lualib/lua_magic/heuristics.lua
@@ -181,7 +181,7 @@ local function detect_ole_format(input, log_obj, _, part)
end
local function process_dir_entry(offset)
- local dtype = input:at(offset + 66)
+ local dtype = input:byte(offset + 66)
lua_util.debugm(N, log_obj, "dtype: %s, offset: %s", dtype, offset)
if dtype then