diff options
-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;
|