X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/html/htmlfilt.cpp diff --git a/src/html/htmlfilt.cpp b/src/html/htmlfilt.cpp index 0baea69675..9bd0d753b6 100644 --- a/src/html/htmlfilt.cpp +++ b/src/html/htmlfilt.cpp @@ -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);