Revision: 9438 https://osdn.net/projects/ttssh2/scm/svn/commits/9438 Author: zmatsuo Date: 2021-09-21 01:36:20 +0900 (Tue, 21 Sep 2021) Log Message: ----------- バッファオーバーランしていたので修正 - r9429 - コマンドライン Unicode化 Revision Links: -------------- https://osdn.net/projects/ttssh2/scm/svn/commits/9429 Modified Paths: -------------- trunk/TTXSamples/TTXCopyIniFile/TTXCopyIniFile.c -------------- next part -------------- Modified: trunk/TTXSamples/TTXCopyIniFile/TTXCopyIniFile.c =================================================================== --- trunk/TTXSamples/TTXCopyIniFile/TTXCopyIniFile.c 2021-09-19 16:21:32 UTC (rev 9437) +++ trunk/TTXSamples/TTXCopyIniFile/TTXCopyIniFile.c 2021-09-20 16:36:20 UTC (rev 9438) @@ -20,7 +20,7 @@ static TInstVar InstVar; static void PASCAL TTXReadIniFile(const wchar_t *fn, PTTSet ts) { - wcscpy_s(pvar->origIniFileName, sizeof(pvar->origIniFileName), fn); + wcscpy_s(pvar->origIniFileName, _countof(pvar->origIniFileName), fn); (pvar->origReadIniFile)(fn, ts); }