You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/10/23 21:05:09 UTC
svn commit: r587615 - /apr/apr-util/branches/1.2.x/xml/apr_xml.c
Author: wrowe
Date: Tue Oct 23 12:05:09 2007
New Revision: 587615
URL: http://svn.apache.org/viewvc?rev=587615&view=rev
Log:
XML_Parse is well-defined as accpeting only an int
for the size arg
Backport: r587432
Modified:
apr/apr-util/branches/1.2.x/xml/apr_xml.c
Modified: apr/apr-util/branches/1.2.x/xml/apr_xml.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.2.x/xml/apr_xml.c?rev=587615&r1=587614&r2=587615&view=diff
==============================================================================
--- apr/apr-util/branches/1.2.x/xml/apr_xml.c (original)
+++ apr/apr-util/branches/1.2.x/xml/apr_xml.c Tue Oct 23 12:05:09 2007
@@ -383,7 +383,7 @@
parser->error = APR_XML_ERROR_PARSE_DONE;
}
else {
- int rv = XML_Parse(parser->xp, data, len, is_final);
+ int rv = XML_Parse(parser->xp, data, (int)len, is_final);
if (rv == 0) {
parser->error = APR_XML_ERROR_EXPAT;