diff --git a/parserInternals.c b/parserInternals.c index 7dc06c88..c3a14ac0 100644 --- a/parserInternals.c +++ b/parserInternals.c @@ -1356,7 +1356,7 @@ xmlNewStringInputStream(xmlParserCtxtPtr ctxt, const xmlChar *buffer) { xmlGenericError(xmlGenericErrorContext, "new fixed input: %.30s\n", buffer); buf = xmlParserInputBufferCreateMem((const char *) buffer, - strlen((const char *) buffer), + xmlStrlen(buffer), XML_CHAR_ENCODING_NONE); if (buf == NULL) { xmlErrMemory(ctxt, NULL);