From 50fb93f0bd6075a0f3cfb77abfc5a3aa9d75a5a6 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 23 Jun 2012 12:27:07 +0000 Subject: Db_autobackups: plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@544 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/backup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Db_autobackups/backup.cpp') diff --git a/plugins/Db_autobackups/backup.cpp b/plugins/Db_autobackups/backup.cpp index fd27c9f09f..a6b78dace2 100644 --- a/plugins/Db_autobackups/backup.cpp +++ b/plugins/Db_autobackups/backup.cpp @@ -180,7 +180,7 @@ int Backup(TCHAR* backup_filename) dest_file_len = lstrlen(dest_file); if(dest_file_len > 50) { - puText = mir_alloc(sizeof(TCHAR) * (dest_file_len + 2)); + 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); -- cgit v1.2.3