Changeset: 3f900e7b4f2f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3f900e7b4f2f
Modified Files:
        monetdb5/modules/atoms/xml.c
Branch: Jan2014
Log Message:

Allocate more space
Hack to avoud Coverity warning


diffs (12 lines):

diff --git a/monetdb5/modules/atoms/xml.c b/monetdb5/modules/atoms/xml.c
--- a/monetdb5/modules/atoms/xml.c
+++ b/monetdb5/modules/atoms/xml.c
@@ -578,7 +578,7 @@ XMLconcat(xml *ret, xml *left, xml *righ
                        throw(MAL, "xml.concat", MAL_MALLOC_FAIL);
                snprintf(buf, len, "A%s %s", *left + 1, *right + 1);
        } else if (**left == 'C') {
-               len = strlen(*left) + strlen(*right);
+               len = strlen(*left) + strlen(*right) +2;
                buf = GDKmalloc(len);
                if (buf == NULL)
                        throw(MAL, "xml.concat", MAL_MALLOC_FAIL);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to