]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing length param, see #10846
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 28 May 2009 09:59:32 +0000 (09:59 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 28 May 2009 09:59:32 +0000 (09:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fs_mem.cpp

index 6503834972df834212749f43f23770d2c7a8ad82..3ad28089e663f8bac2fbd979096e2f1f5950ddd3 100644 (file)
@@ -190,7 +190,7 @@ void wxMemoryFSHandlerBase::AddFileWithMimeType(const wxString& filename,
     (
         filename,
         static_cast<const char *>(textdata.To8BitData()),
-        data.length(),
+        wxStrlen(static_cast<const char *>(textdata.To8BitData())),
         mimetype
     );
 }