summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/lua/liolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua/liolib.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/liolib.c b/Build/source/texk/web2c/luatexdir/lua/liolib.c
index c91cd5ccefd..28cfced022e 100644
--- a/Build/source/texk/web2c/luatexdir/lua/liolib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/liolib.c
@@ -190,7 +190,7 @@ static int io_popen(lua_State * L)
char *safecmd = NULL;
char *cmdname = NULL;
int allow = 0;
- char *cmd = (char *) luaL_checkstring(L, 1);
+ const char *cmd = luaL_checkstring(L, 1);
const char *mode = luaL_optstring(L, 2, "r");
FILE **pf = newfile(L);
@@ -203,7 +203,7 @@ static int io_popen(lua_State * L)
if (restrictedshell == 0)
allow = 1;
else
- allow = shell_cmd_is_allowed(&cmd, &safecmd, &cmdname);
+ allow = shell_cmd_is_allowed(cmd, &safecmd, &cmdname);
if (allow == 1) {
*pf = lua_popen(L, cmd, mode);