Skip to content

Commit 21c2e78

Browse files
committed
bugfix
1 parent bd783c7 commit 21c2e78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ lpersonaldir(lua_State *L) {
197197
if (SHGetFolderPathW(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, document) == S_OK) {
198198
char utf8path[LONGPATH_MAX];
199199
int sz = utf8_filename(L, document, -1, utf8path, LONGPATH_MAX);
200-
lua_pushlstring(L, utf8path, sz-1);
200+
lua_pushlstring(L, utf8path, sz);
201201
return 1;
202202
} else {
203203
return error_return(L);

0 commit comments

Comments
 (0)