From 9e45d8aeddd1d09a69b4ea25d01230391a7d724a Mon Sep 17 00:00:00 2001 From: mattias Date: Mon, 28 Jul 2008 13:11:49 +0000 Subject: [PATCH] laz_xmlread: skipping end of file chars (#26) at end of xml git-svn-id: trunk@15903 - --- components/codetools/laz_xmlread.pas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/codetools/laz_xmlread.pas b/components/codetools/laz_xmlread.pas index 42604e678a..c3675c43e9 100644 --- a/components/codetools/laz_xmlread.pas +++ b/components/codetools/laz_xmlread.pas @@ -442,6 +442,9 @@ begin end; {$ENDIF} + // skip end of file characters + while buf^=#26 do inc(buf); + // check if whole document was read if buf[0] <> #0 then RaiseExc('Text after end of document element found'); end;