]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xmlexpat.cpp
fixed typo
[wxWidgets.git] / contrib / src / xml / xmlexpat.cpp
index f16fcfaa66ebe32fa9da8214ab57dcf5a4ab0e5f..358d45a05b09294fb4eda623824d40b719b68750 100644 (file)
@@ -148,10 +148,10 @@ static void DefaultHnd(void *userData, const char *s, int len)
         int pos;
         pos = buf.Find(wxT("encoding="));
         if (pos != wxNOT_FOUND)
         int pos;
         pos = buf.Find(wxT("encoding="));
         if (pos != wxNOT_FOUND)
-            ctx->encoding = buf.Mid(pos + 10).BeforeFirst(buf.c_str()[pos+9]);
+            ctx->encoding = buf.Mid(pos + 10).BeforeFirst(buf[(size_t)pos+9]);
         pos = buf.Find(wxT("version="));
         if (pos != wxNOT_FOUND)
         pos = buf.Find(wxT("version="));
         if (pos != wxNOT_FOUND)
-            ctx->version = buf.Mid(pos + 9).BeforeFirst(buf.c_str()[pos+8]);
+            ctx->version = buf.Mid(pos + 9).BeforeFirst(buf[(size_t)pos+8]);
     }    
 }
 
     }    
 }