]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/file.cpp
Write correct number of bytes in wxFile::Write(wxString).
[wxWidgets.git] / src / common / file.cpp
index 1063e452936cb0572a86d8785f7745d5785f27ec..8aaa9ac05e64ec4eddf1c2ab06831ad2bcf2c65f 100644 (file)
@@ -312,7 +312,7 @@ bool wxFile::Write(const wxString& s, const wxMBConv& conv)
   if ( !buf )
       return false;
 
-  const size_t size = strlen(buf); // FIXME: use buf.length() when available
+  const size_t size = buf.length();
   return Write(buf, size) == size;
 }