Changeset: 87c7963a9aaf for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=87c7963a9aaf
Modified Files:
        geom/monetdb5/geom.c
Branch: geo
Log Message:

backout of changeset 52f8f0166111: it introduced a logical bug in the code!

and it is not the proper solution to fix a conversion from size_t to int


diffs (13 lines):

diff --git a/geom/monetdb5/geom.c b/geom/monetdb5/geom.c
--- a/geom/monetdb5/geom.c
+++ b/geom/monetdb5/geom.c
@@ -1222,7 +1222,8 @@ str wkbAsText(char **txt, wkb **geomWKB,
                        }       
                        sprintf(sridIntToString, "%d", (*geomWKB)->srid);
 
-                       *txt = 
GDKmalloc(strlen(wkt)+strlen(sridIntToString)+strlen(sridTxt)+2);
+                       len = 
strlen(wkt)+strlen(sridIntToString)+strlen(sridTxt)+2; 
+                       *txt = GDKmalloc(len);
                        if(*txt == NULL) {
                                GDKfree(wkt);
                                GDKfree(sridIntToString);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to