Skip to content

Commit

Permalink
fix spawn_param_filename for unix
Browse files Browse the repository at this point in the history
  • Loading branch information
cryi committed Aug 26, 2022
1 parent ab50e1c commit 6b9b524
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lspawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ spawn_params *spawn_param_init(lua_State *L) {
}

void spawn_param_filename(spawn_params *p, const char *filename) {
#ifdef _WIN32
p->cmdline = filename;
#else
p->command = filename;
#endif
}

/* Converts a Lua array of strings to a null-terminated array of char pointers.
Expand Down

0 comments on commit 6b9b524

Please sign in to comment.