diff --git a/error.c b/error.c index b5d5fc31..cda871a8 100644 --- a/error.c +++ b/error.c @@ -353,9 +353,9 @@ xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str, int len; len = xmlStrlen((const xmlChar *)str); if ((len > 0) && (str[len - 1] != '\n')) - channel(data, "%s", str); - else channel(data, "%s\n", str); + else + channel(data, "%s", str); } else { channel(data, "%s\n", "out of memory error"); } diff --git a/xmlIO.c b/xmlIO.c index ae4aa08a..0698d049 100644 --- a/xmlIO.c +++ b/xmlIO.c @@ -130,7 +130,7 @@ static int xmlOutputCallbackInitialized = 0; ************************************************************************/ static const char *IOerr[] = { - "Unknown IO error errno", /* UNKNOWN */ + "Unknown IO error", /* UNKNOWN */ "Permission denied", /* EACCES */ "Resource temporarily unavailable",/* EAGAIN */ "Bad file descriptor", /* EBADF */