libxslt r1494 - in trunk: . libexslt
- From: wbrack svn gnome org
- To: svn-commits-list gnome org
- Subject: libxslt r1494 - in trunk: . libexslt
- Date: Sat, 24 Jan 2009 03:06:51 +0000 (UTC)
Author: wbrack
Date: Sat Jan 24 03:06:51 2009
New Revision: 1494
URL: http://svn.gnome.org/viewvc/libxslt?rev=1494&view=rev
Log:
* libexslt/strings.c: Fixed indexing error reported by Ron Burk on the mailing list.
Modified:
trunk/ChangeLog
trunk/libexslt/strings.c
Modified: trunk/libexslt/strings.c
==============================================================================
--- trunk/libexslt/strings.c (original)
+++ trunk/libexslt/strings.c Sat Jan 24 03:06:51 2009
@@ -589,15 +589,14 @@
}
str = xmlXPathPopString(ctxt);
- ret = xmlStrdup(str);
+ ret = xmlStrdup(str);
- for (i = 0; i < searchSet->nodeNr; i++) {
-
- searchStr = xmlXPathCastNodeToString(searchSet->nodeTab[i]);
+ for (i = 0; i < searchSet->nodeNr; i++) {
+ searchStr = xmlXPathCastNodeToString(searchSet->nodeTab[i]);
if (replaceSet != NULL) {
replaceStr = NULL;
- if (i <= replaceSet->nodeNr) {
+ if (i < replaceSet->nodeNr) {
replaceStr = xmlXPathCastNodeToString(replaceSet->nodeTab[i]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]