From 348a5cae8b4b77ed686276dd7471adacdbb5c860 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sun, 7 Dec 2014 04:26:58 +0000 Subject: Db_autobackups: rotate fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11259 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/src/backup.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') 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; -- cgit v1.2.3