summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups/backup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db_autobackups/backup.cpp')
-rw-r--r--plugins/Db_autobackups/backup.cpp2
1 files changed, 1 insertions, 1 deletions
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);