From 688f55ba998c19304a29727c910504903f4cc49a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Nov 2014 18:51:36 +0000 Subject: lstr* replacements git-svn-id: http://svn.miranda-ng.org/main/trunk@11176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/src/backup.cpp | 10 +++++----- plugins/Db_autobackups/src/main.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/Db_autobackups/src') 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; -- cgit v1.2.3