X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa2b06e7b1196bffc4e2f57ff710538e66118c32..f050bdbd5b69ed1a6752102f0c4c13bc7cb4ed3c:/src/common/fs_mem.cpp diff --git a/src/common/fs_mem.cpp b/src/common/fs_mem.cpp index 6503834972..3ad28089e6 100644 --- a/src/common/fs_mem.cpp +++ b/src/common/fs_mem.cpp @@ -190,7 +190,7 @@ void wxMemoryFSHandlerBase::AddFileWithMimeType(const wxString& filename, ( filename, static_cast(textdata.To8BitData()), - data.length(), + wxStrlen(static_cast(textdata.To8BitData())), mimetype ); }