diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-07 04:26:58 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-07 04:26:58 +0000 |
commit | 348a5cae8b4b77ed686276dd7471adacdbb5c860 (patch) | |
tree | 0453812aee784b781d203bf778a3ac74ab47f091 /plugins/Db_autobackups/src | |
parent | 33f0b7831d24635a5643740ded327aabc6495c0b (diff) |
Db_autobackups: rotate fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11259 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups/src')
-rw-r--r-- | plugins/Db_autobackups/src/backup.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp index 3444b73cd7..525bd0d4b0 100644 --- a/plugins/Db_autobackups/src/backup.cpp +++ b/plugins/Db_autobackups/src/backup.cpp @@ -186,6 +186,7 @@ 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;
|