Skip to content

Commit 038db39

Browse files
committed
replace wcscpy (CDlgDiff)
1 parent b4f29b9 commit 038db39

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sakura_core/dlg/CDlgDiff.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ int CDlgDiff::DoModal(
101101
const WCHAR* pszPath //自ファイル
102102
)
103103
{
104-
wcscpy(m_szFile1, pszPath);
104+
m_szFile1 = pszPath;
105105

106106
return (int)CDialog::DoModal( hInstance, hwndParent, IDD_DIFF, lParam );
107107
}
@@ -129,7 +129,7 @@ BOOL CDlgDiff::OnBnClicked( int wID )
129129
);
130130
if( cDlgOpenFile.DoModal_GetOpenFileName( szPath ) )
131131
{
132-
wcscpy( m_szFile2, szPath );
132+
m_szFile2 = szPath;
133133
ApiWrap::DlgItem_SetText( GetHwnd(), IDC_EDIT_DIFF_DST, m_szFile2 );
134134
//外部ファイルを選択状態に
135135
::CheckDlgButton( GetHwnd(), IDC_RADIO_DIFF_DST1, TRUE );
@@ -384,7 +384,7 @@ int CDlgDiff::GetData( void )
384384
::SendMessageAny( m_hWnd_Dst, MYWM_GETFILEINFO, 0, 0 );
385385
pFileInfo = (EditInfo*)&m_pShareData->m_sWorkBuffer.m_EditInfo_MYWM_GETFILEINFO;
386386

387-
wcscpy( m_szFile2, pFileInfo->m_szPath );
387+
m_szFile2 = pFileInfo->m_szPath;
388388
m_bIsModifiedDst = pFileInfo->m_bIsModified;
389389
m_nCodeTypeDst = pFileInfo->m_nCharCode;
390390
m_bBomDst = pFileInfo->m_bBom;

0 commit comments

Comments
 (0)