]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlfilt.cpp
Add a wxHtmlTag helper parsing both absolute values and percents.
[wxWidgets.git] / src / html / htmlfilt.cpp
index f564086ae49132fb56a3d2b7daa2b2fd69772967..9bd0d753b6c5d545686c151b812eed81fefb45e6 100644 (file)
@@ -154,11 +154,10 @@ 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);
         if (charset.empty())
             doc = tmpdoc;