mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
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:
@@ -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>
|
Tue Apr 24 10:59:28 CEST 2007 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* uri.c: fix xmlURIUnescapeString comments which was confusing
|
* uri.c: fix xmlURIUnescapeString comments which was confusing
|
||||||
|
3
tree.c
3
tree.c
@@ -6968,7 +6968,8 @@ xmlBufferAdd(xmlBufferPtr buf, const xmlChar *str, int len) {
|
|||||||
if (len < 0)
|
if (len < 0)
|
||||||
len = xmlStrlen(str);
|
len = xmlStrlen(str);
|
||||||
|
|
||||||
if (len <= 0) return -1;
|
if (len < 0) return -1;
|
||||||
|
if (len == 0) return 0;
|
||||||
|
|
||||||
needSize = buf->use + len + 2;
|
needSize = buf->use + len + 2;
|
||||||
if (needSize > buf->size){
|
if (needSize > buf->size){
|
||||||
|
Reference in New Issue
Block a user