about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-02-02 23:38:45 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-02-02 23:38:45 -0800
commit8f8a0e5a181de799ce95c5d91c0266e0a06671d8 (patch)
tree74a97067ff18ede3f7300ba76d499c23ef6b331e /src
parentf5a1c22dc5ef38ed79d0775bf17b65257b46ee38 (diff)
downloadteliva-8f8a0e5a181de799ce95c5d91c0266e0a06671d8.tar.gz
tweak an entry in the audit log
Diffstat (limited to 'src')
-rw-r--r--src/liolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liolib.c b/src/liolib.c
index 4c6a3fe..82598b6 100644
--- a/src/liolib.c
+++ b/src/liolib.c
@@ -176,7 +176,7 @@ static int io_lines (lua_State *L) {
   FILE **pf = newfile(L);
   static char buffer[1024] = {0};
   memset(buffer, '\0', 1024);
-  snprintf(buffer, 1020, "io.lines(\"%s\", \"r\")", filename);
+  snprintf(buffer, 1020, "io.lines(\"%s\")", filename);
   append_to_audit_log(L, buffer);
   if (file_operation_permitted(caller(L), filename, "r"))
     *pf = fopen(filename, "r");