]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/db.cpp
wxDatePicker and wxDateTime for PalmOS. Remove conflict with internal maxDays in...
[wxWidgets.git] / src / common / db.cpp
index 7ace44f7b86c2cc610e3f9cf35540a3ce4f15e09..746c65ce0b7915bf2dedecf1baa9ce6560be7008 100644 (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--;
     }