From 5a7c3459d0fb823f82a22e120a7f199eaf4140af Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 26 Apr 2001 09:16:13 +0000 Subject: [PATCH] =?UTF-8?q?-=20error.c:=20Jean=20Fran=E7ois=20Lecomte=20pr?= =?UTF-8?q?ovided=20a=20complete=20description=20=20=20and=20a=20fix=20to?= =?UTF-8?q?=20bug=20#53537=20Daniel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeLog | 5 +++++ error.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2919b2cc..739a6d81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 26 11:14:56 CEST 2001 Daniel Veillard + + * error.c: Jean François Lecomte provided a complete description + and a fix to bug #53537 + Thu Apr 26 09:42:58 CEST 2001 Daniel Veillard * libxml.m4: added AM_PATH_XML2 provided by Toshio Kuratomi diff --git a/error.c b/error.c index 0bb3a844..4477afed 100644 --- a/error.c +++ b/error.c @@ -137,8 +137,13 @@ xmlParserPrintFileContext(xmlParserInputPtr input) { *ctnt++ = ' '; cur--; } - *(--ctnt) = '^'; - *(++ctnt) = 0; + if (ctnt > content) { + *(--ctnt) = '^'; + *(++ctnt) = 0; + } else { + *ctnt = '^'; + *(++ctnt) = 0; + } xmlGenericError(xmlGenericErrorContext,"%s\n", content); }