From b5ed40e2f2313402dfd7882cc1cc3783f1004034 Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Sat, 10 Oct 2020 12:33:09 +0800 Subject: [PATCH] fix missing argumnet --- src/api/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/system.c b/src/api/system.c index 93bd5cd..3286ab0 100644 --- a/src/api/system.c +++ b/src/api/system.c @@ -418,7 +418,7 @@ static int f_popen(lua_State *L) { CloseHandle(pi.hThread); #else FILE* pipe = popen(cmd, "rb"); - if (pipe == NULL) { luaL_error("Failed to start process"); } + if (pipe == NULL) { luaL_error(L, "Failed to start process"); } size_t read; while(!feof(pipe)) {