summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups/src/backup.cpp
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/backup.cpp
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/backup.cpp')
-rw-r--r--plugins/Db_autobackups/src/backup.cpp10
1 files changed, 5 insertions, 5 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);