From a91da38d5957c6deccca0b805c6ed6657282ec3e Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 4 Jul 2023 11:04:40 -0400 Subject: Whoops. --- src/lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lpm.c b/src/lpm.c index 473e3c0..dbe01bf 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -238,7 +238,7 @@ static int lpm_stat(lua_State *L) { struct _stat s; LPCWSTR wpath = lua_toutf16(L, path); int err = _wstat(wpath, &s); - const char *abs_path = !err && _wfullpath(full_path, wpath, MAX_PATH) ? lua_toutf8(L, (LPCWSTR)fullpath) : NULL; + const char *abs_path = !err && _wfullpath(full_path, wpath, MAX_PATH) ? lua_toutf8(L, (LPCWSTR)full_path) : NULL; #else char full_path[MAX_PATH]; struct stat s; -- cgit v1.2.3