]> granicus.if.org Git - postgis/commitdiff
Fixed a bug in pointArray_construct() copying input points instead
authorSandro Santilli <strk@keybit.net>
Thu, 17 Feb 2005 09:19:20 +0000 (09:19 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 17 Feb 2005 09:19:20 +0000 (09:19 +0000)
of keeping a pointer to them. This has been introduced *after* RC2
was released.

git-svn-id: http://svn.osgeo.org/postgis/trunk@1399 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_api.c

index c6d0a31d2e799bed59ad27d2d3374db97fd22421..c4d6c3e064b2b22556023232024e56faf0d5a00b 100644 (file)
@@ -594,8 +594,9 @@ pointArray_construct(uchar *points, char hasz, char hasm,
        pa->npoints = npoints;
 
        size=(2+hasz+hasm)*sizeof(double)*npoints;
-       pa->serialized_pointlist = lwalloc(size);
-       memcpy(pa->serialized_pointlist, points, size);
+       //pa->serialized_pointlist = lwalloc(size);
+       //memcpy(pa->serialized_pointlist, points, size);
+       pa->serialized_pointlist = points;
 
        return pa;
 }