Commit: eedd8c39300dfa0700fae20ef75e607eb692e8a6 Parent: 5b4cfa77d42b0a48f7bb858f34724dc4ccde91eb Author: Randy Palamar Date: Thu, 26 Oct 2023 09:49:18 -0600 fix file reading on old lua Diffstat:
M | init.lua | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init.lua b/init.lua @@ -55,7 +55,7 @@ local function encrypt(file) local tf = io.open(tfn, 'rb') file:delete(0, file.size) - file:insert(0, tf:read("a")) + file:insert(0, tf:read("*a")) tf:close() os.remove(tfn)