Richard Jones reported xmlBufferAdd (buf, "", -1), fixing it Daniel
* tree.c: Richard Jones reported xmlBufferAdd (buf, "", -1), fixing it
Daniel
svn path=/trunk/; revision=3605
diff --git a/ChangeLog b/ChangeLog
index 6874d1c..8556a6c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Apr 24 20:15:14 CEST 2007 Daniel Veillard <daniel@veillard.com>
+
+ * tree.c: Richard Jones reported xmlBufferAdd (buf, "", -1), fixing it
+
Tue Apr 24 10:59:28 CEST 2007 Daniel Veillard <daniel@veillard.com>
* uri.c: fix xmlURIUnescapeString comments which was confusing
diff --git a/tree.c b/tree.c
index ffbcabd..fe57921 100644
--- a/tree.c
+++ b/tree.c
@@ -6968,7 +6968,8 @@
if (len < 0)
len = xmlStrlen(str);
- if (len <= 0) return -1;
+ if (len < 0) return -1;
+ if (len == 0) return 0;
needSize = buf->use + len + 2;
if (needSize > buf->size){