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
This commit is contained in:
Daniel Veillard 2007-04-24 18:12:06 +00:00
parent 7918765454
commit c9923324e9
2 changed files with 6 additions and 1 deletions

View File

@ -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

3
tree.c
View File

@ -6968,7 +6968,8 @@ xmlBufferAdd(xmlBufferPtr buf, const xmlChar *str, int len) {
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){