From 9e2bd1354aaf6148e76b167bd02970956376b5cb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 Mar 2006 14:16:49 +0000 Subject: [PATCH] corrected test for NUL in wxHtmlEntitiesParser::Parse() (patch 1443823) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/htmlpars.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp index b9ef2b9f76..b1da8c92df 100644 --- a/src/html/htmlpars.cpp +++ b/src/html/htmlpars.cpp @@ -491,7 +491,8 @@ wxString wxHtmlEntitiesParser::Parse(const wxString& input) { if (c - last > 0) output.append(last, c - last); - if (++c == wxT('\0')) break; + if ( *++c == wxT('\0') ) + break; wxString entity; const wxChar *ent_s = c; -- 2.45.2