Applied the proposed fix for the documentation of xmlXPathCastToString();

* xpath.c: Applied the proposed fix for the documentation
  of xmlXPathCastToString(); see bug #346202.
diff --git a/ChangeLog b/ChangeLog
index 27a8078..75f9df5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 15 15:02:18 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
+
+	* xpath.c: Applied the proposed fix for the documentation
+	  of xmlXPathCastToString(); see bug #346202.
+
 Tue Aug 15 14:49:18 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
 
 	* xmlschemas.c: While investigating bug #350247, I noticed
diff --git a/xpath.c b/xpath.c
index 4f05477..1b7117f 100644
--- a/xpath.c
+++ b/xpath.c
@@ -5597,9 +5597,8 @@
  *
  * Converts an existing object to its string() equivalent
  *
- * Returns the string value of the object, NULL in case of error.
- *         A new string is allocated only if needed (@val isn't a
- *         string object).
+ * Returns the allocated string value of the object, NULL in case of error.
+ *         It's up to the caller to free the string memory with xmlFree(). 
  */
 xmlChar *
 xmlXPathCastToString(xmlXPathObjectPtr val) {