]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlfilt.cpp
missing commit
[wxWidgets.git] / src / html / htmlfilt.cpp
index 0baea696758c1db86b40fa3c0583fb8bdf2396fe..9bd0d753b6c5d545686c151b812eed81fefb45e6 100644 (file)
@@ -154,9 +154,8 @@ wxString wxHtmlFilterHTML::ReadFile(const wxFSFile& file) const
     else
     {
         size_t size = s->GetSize();
-        wxCharBuffer buf( size+1 );
+        wxCharBuffer buf( size );
         s->Read( buf.data(), size );
-        *(buf.data() + size) = 0;
         wxString tmpdoc( buf, wxConvISO8859_1);
 
         wxString charset = wxHtmlParser::ExtractCharsetInformation(tmpdoc);