]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_mem.cpp
Make it compile
[wxWidgets.git] / 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
     );
 }