diff options
Diffstat (limited to 'plugins')
-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>
|