fix bug reported by François Delyon Daniel

* uri.c: fix bug reported by François Delyon
Daniel

svn path=/trunk/; revision=3619
diff --git a/ChangeLog b/ChangeLog
index 0c7a0d7..a0bc32a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon May 28 16:14:50 CEST 2007 Daniel Veillard <daniel@veillard.com>
+
+	* uri.c: fix bug reported by François Delyon
+
 Tue May 22 08:59:48 PDT 2007 William Brack <wbrack@mmm.com.hk>
 
 	* encoding.c: Fixed typo in xmlCharEncFirstLine pointed out
diff --git a/uri.c b/uri.c
index 2141317..4f5e182 100644
--- a/uri.c
+++ b/uri.c
@@ -1296,7 +1296,7 @@
 	if (uri != NULL) {
 	    if (uri->user != NULL) xmlFree(uri->user);
 	    if (uri->cleanup & 2)
-		uri->path = STRNDUP(*str, cur - *str);
+		uri->user = STRNDUP(*str, cur - *str);
 	    else
 		uri->user = xmlURIUnescapeString(*str, cur - *str, NULL);
 	}