X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69baadbbd1ed7a755ff1ad788ae2c3b845110bb2..6a27c749b302e17446080bb232ef8010b60f3d00:/src/common/db.cpp diff --git a/src/common/db.cpp b/src/common/db.cpp index 7ace44f7b8..746c65ce0b 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -1868,7 +1868,7 @@ void wxDb::logError(const wxString &errMsg, const wxString &SQLState) if (++pLast == DB_MAX_ERROR_HISTORY) { int i; - for (i = 0; i < DB_MAX_ERROR_HISTORY; i++) + for (i = 0; i < DB_MAX_ERROR_HISTORY-1; i++) wxStrcpy(errorList[i], errorList[i+1]); pLast--; }