summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-11-30 18:51:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-11-30 18:51:36 +0000
commit688f55ba998c19304a29727c910504903f4cc49a (patch)
tree69121ebb6d02bcf9e670428b11813087fc7f1640 /plugins/Db_autobackups/src
parent4f0e30cdf56fbafdf955bbe8b93930bab9e39bd0 (diff)
lstr* replacements
git-svn-id: http://svn.miranda-ng.org/main/trunk@11176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups/src')
-rw-r--r--plugins/Db_autobackups/src/backup.cpp10
-rw-r--r--plugins/Db_autobackups/src/main.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp
index 7627dae3ed..a79d1fb311 100644
--- a/plugins/Db_autobackups/src/backup.cpp
+++ b/plugins/Db_autobackups/src/backup.cpp
@@ -232,7 +232,7 @@ int Backup(TCHAR* backup_filename)
}
else
{
- lstrcpyn(dest_file, backup_filename, MAX_PATH);
+ mir_tstrncpy(dest_file, backup_filename, MAX_PATH);
if (!_tcscmp(_tcsrchr(backup_filename, _T('.')), _T(".zip")))
bZip = true;
}
@@ -268,7 +268,7 @@ int Backup(TCHAR* backup_filename)
db_set_dw(0, "AutoBackups", "LastBackupTimestamp", (DWORD)time(0));
if (!options.disable_popups)
{
- size_t dest_file_len = lstrlen(dest_file);
+ size_t dest_file_len = mir_tstrlen(dest_file);
TCHAR *puText;
if (dest_file_len > 50)
{
@@ -276,9 +276,9 @@ int Backup(TCHAR* backup_filename)
puText = (TCHAR*)mir_alloc(sizeof(TCHAR) * (dest_file_len + 2));
for (i = (int)dest_file_len - 1; dest_file[i] != _T('\\'); i--);
- lstrcpyn(puText, dest_file, i + 2);
- lstrcat(puText, _T("\n"));
- lstrcat(puText, dest_file + i + 1);
+ mir_tstrncpy(puText, dest_file, i + 2);
+ mir_tstrcat(puText, _T("\n"));
+ mir_tstrcat(puText, dest_file + i + 1);
}
else
puText = mir_tstrdup(dest_file);
diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp
index 79ea056065..2b684a610a 100644
--- a/plugins/Db_autobackups/src/main.cpp
+++ b/plugins/Db_autobackups/src/main.cpp
@@ -149,8 +149,8 @@ void ShowPopup(TCHAR* ptszText, TCHAR* ptszHeader, TCHAR* ptszPath)
{
POPUPDATAT ppd = {0};
- lstrcpy(ppd.lptzText, ptszText);
- lstrcpy(ppd.lptzContactName, ptszHeader);
+ mir_tstrcpy(ppd.lptzText, ptszText);
+ mir_tstrcpy(ppd.lptzContactName, ptszHeader);
if (ptszPath != NULL)
ppd.PluginData = (void*)mir_tstrdup(ptszPath);
ppd.PluginWindowProc = DlgProcPopup;