summaryrefslogtreecommitdiff
path: root/plugins/SplashScreen/src/main.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-09 19:25:58 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-09 19:25:58 +0000
commit4fb814b906f54b18bcfa56654f019ed1ef36b98e (patch)
treeb536248b6372940decde6d6395b148b56da3b244 /plugins/SplashScreen/src/main.cpp
parentac2acb9980932ed028b8a31d2add76a4b2b9b56b (diff)
added precompiled header
git-svn-id: http://svn.miranda-ng.org/main/trunk@3946 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SplashScreen/src/main.cpp')
-rw-r--r--plugins/SplashScreen/src/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/SplashScreen/src/main.cpp b/plugins/SplashScreen/src/main.cpp
index 4a18a103c1..96054f39f6 100644
--- a/plugins/SplashScreen/src/main.cpp
+++ b/plugins/SplashScreen/src/main.cpp
@@ -155,14 +155,14 @@ void SplashMain()
TCHAR szExpandedSplashFile[MAX_PATH];
ExpandEnvironmentStrings(inBuf, szExpandedSplashFile, SIZEOF(szExpandedSplashFile));
- lstrcpy(inBuf, szExpandedSplashFile);
+ _tcscpy_s(inBuf, szExpandedSplashFile);
TCHAR *pos3 = 0;
pos3 = _tcsrchr(inBuf, _T(':'));
if (pos3 == NULL)
mir_sntprintf(szSplashFile, SIZEOF(szSplashFile), _T("%s\\%s"), szMirDir, inBuf);
else
- lstrcpy(szSplashFile, inBuf);
+ _tcscpy_s(szSplashFile, inBuf);
DBGetContactSettingTString(NULL, MODNAME, "Sound", &dbv);
if (lstrcmp(dbv.ptszVal, NULL) == 0)
@@ -175,14 +175,14 @@ void SplashMain()
TCHAR szExpandedSoundFile[MAX_PATH];
ExpandEnvironmentStrings(inBuf, szExpandedSoundFile, SIZEOF(szExpandedSoundFile));
- lstrcpy(inBuf, szExpandedSoundFile);
+ _tcscpy_s(inBuf, szExpandedSoundFile);
TCHAR *pos2;
pos2 = _tcschr(inBuf, _T(':'));
if (pos2 == NULL)
mir_sntprintf(szSoundFile, SIZEOF(szSoundFile), _T("%s\\%s"), szMirDir, inBuf);
else
- lstrcpy(szSoundFile, inBuf);
+ _tcscpy_s(szSoundFile, inBuf);
#ifdef _DEBUG
logMessage(_T("SoundFilePath"), szSoundFile);
@@ -197,8 +197,8 @@ void SplashMain()
TCHAR* p = 0;
TCHAR files [255][50]; //TODO: make memory allocation dynamic
- lstrcpy(szSplashDir, szSplashFile);
- lstrcpy(szOldPath, szSplashFile);
+ _tcscpy_s(szSplashDir, szSplashFile);
+ _tcscpy_s(szOldPath, szSplashFile);
// find the last \ and null it out, this leaves no trailing slash
p = _tcsrchr(szSplashDir, _T('\\'));
if (p) *p = 0;