Skip to content

Commit c9011d6

Browse files
committed
fix wcstombs
1 parent 1c00c15 commit c9011d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vmaware.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ struct VM {
10321032
// handle TCHAR conversion
10331033
[[nodiscard]] static bool exists(const TCHAR* path) {
10341034
char c_szText[_MAX_PATH];
1035-
wcstombs(c_szText, path, wcslen(path) + 1);
1035+
wcsombs_s(c_szText, path, wcslen(path) + 1);
10361036
return exists(c_szText);
10371037
}
10381038
#endif

0 commit comments

Comments
 (0)