From 4f5ccbd1f5b1ca1075f4b1ce6b013e15044db0a1 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 10 Feb 2016 15:24:53 +0000 Subject: ops git-svn-id: http://svn.miranda-ng.org/main/trunk@16268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/src/backup.cpp | 2 +- plugins/Db_autobackups/src/stdafx.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/Db_autobackups/src') 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 #include #include -#include #include #include -- cgit v1.2.3