Skip to content

Commit

Permalink
PATH_MAX removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Kosyh committed May 17, 2021
1 parent 9d14bd7 commit 0e6f217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static const luaL_Reg tiny_funcs[] = {
static int tiny_init(void)
{
int rc;
char path[PATH_MAX];
char path[1024];
instead_api_register(tiny_funcs);
snprintf(path, sizeof(path), "%s/tiny.lua", instead_lua_path(NULL));
rc = instead_loadfile(path);
Expand Down

0 comments on commit 0e6f217

Please sign in to comment.