summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-12-07 12:34:46 +0000
committerRobert Pösel <robyer@seznam.cz>2014-12-07 12:34:46 +0000
commitbac4a9ae947fffb4416ce2688bef14d4b4bd0b0a (patch)
tree95587abcd3dd180335f2dbfcc07065ebe09430d3
parent348a5cae8b4b77ed686276dd7471adacdbb5c860 (diff)
Db_autobackups: rotate fix fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11260 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Db_autobackups/src/backup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp
index 525bd0d4b0..5854ba2287 100644
--- a/plugins/Db_autobackups/src/backup.cpp
+++ b/plugins/Db_autobackups/src/backup.cpp
@@ -186,13 +186,13 @@ int RotateBackups(TCHAR *backupfolder, TCHAR *dbname)
do {
if (FindFileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
continue;
- i ++;
bftmp = (backupFile*)mir_realloc(bf, ((i + 1) * sizeof(backupFile)));
if (bftmp == NULL)
goto err_out;
bf = bftmp;
_tcsncpy_s(bf[i].Name, FindFileData.cFileName, _TRUNCATE);
bf[i].CreationTime = FindFileData.ftCreationTime;
+ i ++;
} while (FindNextFile(hFind, &FindFileData));
if (i > 0)