diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-10 15:24:53 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-10 15:24:53 +0000 |
commit | 4f5ccbd1f5b1ca1075f4b1ce6b013e15044db0a1 (patch) | |
tree | da8e613cdd1caf5ed6e73a4f85361049df0f5af7 /plugins/Db_autobackups | |
parent | 03c2ca250fd68db241dd57f5d1df6672bc706b17 (diff) |
ops
git-svn-id: http://svn.miranda-ng.org/main/trunk@16268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups')
-rw-r--r-- | plugins/Db_autobackups/src/backup.cpp | 2 | ||||
-rw-r--r-- | plugins/Db_autobackups/src/stdafx.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp index 702c29132d..48044887e4 100644 --- a/plugins/Db_autobackups/src/backup.cpp +++ b/plugins/Db_autobackups/src/backup.cpp @@ -327,10 +327,10 @@ int Backup(TCHAR *backup_filename) if (dest_file_len > 50) {
size_t i;
+ puText = (TCHAR*)mir_alloc(sizeof(TCHAR) * (dest_file_len + 2));
for (i = (dest_file_len - 1); dest_file[i] != _T('\\'); i--)
;
//_tcsncpy_s(dest_file, backup_filename, _TRUNCATE);
-
mir_tstrncpy(puText, dest_file, (i + 2));
mir_tstrcat(puText, _T("\n"));
mir_tstrcat(puText, (dest_file + i + 1));
diff --git a/plugins/Db_autobackups/src/stdafx.h b/plugins/Db_autobackups/src/stdafx.h index dfffaf88fb..7f1593adca 100644 --- a/plugins/Db_autobackups/src/stdafx.h +++ b/plugins/Db_autobackups/src/stdafx.h @@ -23,7 +23,6 @@ #include <m_options.h>
#include <m_popup.h>
#include <m_icolib.h>
-#include <win2k.h>
#include <m_autobackups.h>
#include <m_folders.h>
|