]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datstrm.cpp
Traditional Chinese translations update from Wei-Lun Chao.
[wxWidgets.git] / src / common / datstrm.cpp
index 607c542647064d4983d1faff61b3501d4c2ed842..cb76a5528ea30e6831e6fe0c8379e33d6d52329b 100644 (file)
@@ -114,11 +114,10 @@ wxString wxDataInputStream::ReadString()
     if ( len > 0 )
     {
 #if wxUSE_UNICODE
-        wxCharBuffer tmp(len + 1);
+        wxCharBuffer tmp(len);
         if ( tmp )
         {
             m_input->Read(tmp.data(), len);
-            tmp.data()[len] = '\0';
             ret = m_conv->cMB2WX(tmp.data());
         }
 #else