summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/loadlib_rel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loadlib_rel.c b/src/loadlib_rel.c
index 2c7d59d..c720c0a 100644
--- a/src/loadlib_rel.c
+++ b/src/loadlib_rel.c
@@ -130,7 +130,7 @@ static void setprogdir(lua_State *L) {
*lb = '\0';
// Replace the relative path placeholder
- luaL_gsub(L, lua_tostring(L, -1), LUA_EXEC_DIR, progdir);
+ luaL_gsub(L, lua_tostring(L, -1), LUA_EXECDIR, progdir);
lua_remove(L, -2);
}
}