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
#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