Changeset: 429b9e96db70 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=429b9e96db70
Modified Files:
        geom/monetdb5/geom.c
Branch: default
Log Message:

off by one


diffs (20 lines):

diff --git a/geom/monetdb5/geom.c b/geom/monetdb5/geom.c
--- a/geom/monetdb5/geom.c
+++ b/geom/monetdb5/geom.c
@@ -5252,13 +5252,13 @@ mbrTOSTR(char **dst, size_t *len, const 
                dstStrLen = strlen(tempWkt);
        }
 
-       if (*len < dstStrLen + 3 || *dst == NULL) {
+       if (*len < dstStrLen + 4 || *dst == NULL) {
                GDKfree(*dst);
-               if ((*dst = GDKmalloc(*len = dstStrLen + 3)) == NULL)
+               if ((*dst = GDKmalloc(*len = dstStrLen + 4)) == NULL)
                        return -1;
        }
 
-       if (dstStrLen > 3) {
+       if (dstStrLen > 4) {
                if (external) {
                        snprintf(*dst, *len, "\"%s\"", tempWkt);
                        dstStrLen += 2;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to