]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
Win16 BC++ makefile fixes, other v. small fixes
[wxWidgets.git] / src / common / datetime.cpp
index 11c5c78824a208d8c2b94f36ffd2e689f6940a94..61ac755d79b9d6bf61fbc75bd1c55cd00a9b938c 100644 (file)
@@ -2987,7 +2987,7 @@ const wxChar *wxDateTime::ParseDate(const wxChar *date)
     {
         wxString date = wxGetTranslation(literalDates[n].str);
         size_t len = date.length();
-        if ( wxString(p, len).CmpNoCase(date) == 0 )
+        if ( wxStrlen(p) >= len && (wxString(p, len).CmpNoCase(date) == 0) )
         {
             // nothing can follow this, so stop here
             p += len;