- error.c: Jean François Lecomte provided a complete description
  and a fix to bug #53537
Daniel
diff --git a/error.c b/error.c
index 0bb3a84..4477afe 100644
--- a/error.c
+++ b/error.c
@@ -137,8 +137,13 @@
 	*ctnt++ = ' ';
 	cur--;
     }
-    *(--ctnt) = '^';
-    *(++ctnt) = 0;
+    if (ctnt > content) {
+	*(--ctnt) = '^';
+	*(++ctnt) = 0;
+    } else {
+	*ctnt = '^';
+	*(++ctnt) = 0;
+    }
     xmlGenericError(xmlGenericErrorContext,"%s\n", content);
 }