// 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
/////////////////////////////////////////////////////////////////////////////
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);