Buffer Overflow error corrected - SF patch #1110550

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
George Tasker
2005-02-02 14:49:55 +00:00
parent 69baadbbd1
commit 3387ea2966

View File

@@ -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--;
}