Skip to content

Commit bae4c1f

Browse files
authored
fix zip extract missing pop for wpath pushed in luaL_convertlstring (#2668)
1 parent b1f0f25 commit bae4c1f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/host/zip_extract.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ static int extract(lua_State *L, const char* src, const char* destination)
200200
return -1;
201201
}
202202
fp = _wfopen(wpath, L"wb");
203+
lua_pop(L, 1); /* pop converted wide path */
203204
}
204205
#else
205206
fp = fopen(appended_full_name, "wb");

0 commit comments

Comments
 (0)