From: George Tasker Date: Wed, 2 Feb 2005 14:49:55 +0000 (+0000) Subject: Buffer Overflow error corrected - SF patch #1110550 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3387ea29661af16a65ae9e19ae7cf524315d803e?ds=inline Buffer Overflow error corrected - SF patch #1110550 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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--; }