fix missing argumnet

This commit is contained in:
takase1121 2020-10-10 12:33:09 +08:00
parent a85eb88cfd
commit b5ed40e2f2
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {