Revision: 9477 https://osdn.net/projects/ttssh2/scm/svn/commits/9477 Author: zmatsuo Date: 2021-10-17 01:17:22 +0900 (Sun, 17 Oct 2021) Log Message: ----------- 文字列領域のサイズ指定を誤っていたので修正 Modified Paths: -------------- trunk/teraterm/teraterm/vtwin.cpp -------------- next part -------------- Modified: trunk/teraterm/teraterm/vtwin.cpp =================================================================== --- trunk/teraterm/teraterm/vtwin.cpp 2021-10-16 16:12:04 UTC (rev 9476) +++ trunk/teraterm/teraterm/vtwin.cpp 2021-10-16 16:17:22 UTC (rev 9477) @@ -4609,7 +4609,7 @@ ofn.lStructSize = get_OPENFILENAME_SIZEW(); ofn.hwndOwner = HWin; ofn.lpstrFile = NameW; - ofn.nMaxFile = sizeof(NameW); + ofn.nMaxFile = _countof(NameW); ofn.lpstrFilter = FNameFilter; ofn.nFilterIndex = 1; ofn.hInstance = hInst;