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:
@@ -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--;
|
||||
}
|
||||
|
Reference in New Issue
Block a user