m_lf.lfClipPrecision = CLIP_DEFAULT_PRECIS;
m_lf.lfQuality = DEFAULT_QUALITY;
m_lf.lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE;
- _tcscpy(m_lf.lfFaceName, _T("Courier New"));
+ _tcscpy_s(m_lf.lfFaceName, _T("Courier New"));
m_pSyntaxColors = new SyntaxColors();
m_pMarkers = new CCrystalTextMarkers();
{
TCHAR drive[_MAX_PATH], dir[_MAX_PATH], name[_MAX_PATH], ext[_MAX_PATH];
#ifdef _UNICODE
- _wsplitpath (pszFileName, drive, dir, name, ext);
+ _wsplitpath_s (pszFileName, drive, dir, name, ext);
#else
- _splitpath (pszFileName, drive, dir, name, ext);
+ _splitpath_s (pszFileName, drive, dir, name, ext);
#endif
- _tcscpy (szTempFileDir, drive);
- _tcscat (szTempFileDir, dir);
- _tcscpy (szBackupFileName, pszFileName);
- _tcscat (szBackupFileName, _T (".bak"));
+ _tcscpy_s (szTempFileDir, drive);
+ _tcscat_s (szTempFileDir, dir);
+ _tcscpy_s (szBackupFileName, pszFileName);
+ _tcscat_s (szBackupFileName, _T (".bak"));
if (::GetTempFileName (szTempFileDir, _T ("CRE"), 0, szTempFileName) == 0)
__leave;