From ae5e7fb49b004dbd9cd65aa163b197276c0cfdf0 Mon Sep 17 00:00:00 2001 From: David Blasby Date: Thu, 25 Oct 2001 18:22:03 +0000 Subject: [PATCH] Fixed but in WKB out - wkb_multi* didnt set the 'size' return value. git-svn-id: http://svn.osgeo.org/postgis/trunk@92 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis_inout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postgis_inout.c b/postgis_inout.c index 2a27e9314..dacdfd8de 100644 --- a/postgis_inout.c +++ b/postgis_inout.c @@ -2214,6 +2214,7 @@ char *wkb_multiline(LINE3D **lines,int32 *size, int numb_lines, bool flipbytes, total_size = 9 + 9*numb_lines + 16*total_points; } + *size = total_size; result = palloc (total_size); @@ -2427,6 +2428,8 @@ char *wkb_multipolygon(POLYGON3D **polys,int numb_polys,int32 *size, bool flipby total_size = 9 + 9*numb_polys + 16*total_points + 4*total_rings; } + *size = total_size; + result = palloc (total_size); result[0] = byte_order; -- 2.40.0