]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlfilt.cpp
Add wxActivateEvent::GetActivationReason().
[wxWidgets.git] / src / html / htmlfilt.cpp
index f564086ae49132fb56a3d2b7daa2b2fd69772967..9564d87ded6f38d2f9429f18db3fe73df44dadcc 100644 (file)
@@ -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,11 +153,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;