Commit afdf7491 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msxml3: Use correct string length in saxreader_get_cdata_chunk.

parent 1a114c9f
......@@ -1972,6 +1972,7 @@ static BSTR saxreader_get_cdata_chunk(const xmlChar *str, int len)
BSTR bstr = bstr_from_xmlCharN(str, len), ret;
WCHAR *ptr;
len = SysStringLen(bstr);
ptr = bstr + len - 1;
while ((*ptr == '\r' || *ptr == '\n') && ptr >= bstr)
ptr--;
......@@ -2038,7 +2039,7 @@ static void libxml_cdatablock(void *ctx, const xmlChar *value, int len)
while (i < len)
{
if (value[i] != '\r' && value[i] != '\n') break;
i++;
i++;
}
end = &value[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment