X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..6d2190fcb4ba8c0a297a90ac233e88ad0c5cd13f:/src/html/htmlfilt.cpp diff --git a/src/html/htmlfilt.cpp b/src/html/htmlfilt.cpp index 0baea69675..9564d87ded 100644 --- a/src/html/htmlfilt.cpp +++ b/src/html/htmlfilt.cpp @@ -2,7 +2,6 @@ // Name: src/html/htmlfilt.cpp // Purpose: wxHtmlFilter - input filter for translating into HTML format // Author: Vaclav Slavik -// RCS-ID: $Id$ // Copyright: (c) 1999 Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -154,9 +153,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);