X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36e5a9a7c437ff0b811159c445393833012bbc5c..87f0b1323b7ac77f02133b836c8dfee63b0fd387:/src/common/datstrm.cpp diff --git a/src/common/datstrm.cpp b/src/common/datstrm.cpp index e480fef05e..cb76a5528e 100644 --- a/src/common/datstrm.cpp +++ b/src/common/datstrm.cpp @@ -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 @@ -551,7 +550,11 @@ void wxDataOutputStream::WriteDouble(double d) #else wxUnusedVar(d); #if !defined(__VMS__) && !defined(__GNUG__) +#ifdef _MSC_VER +# pragma message("wxDataOutputStream::WriteDouble() not using IeeeExtended - will not work!") +#else # pragma warning "wxDataOutputStream::WriteDouble() not using IeeeExtended - will not work!" +#endif #endif buf[0] = '\0'; #endif