]> granicus.if.org Git - postgis/commitdiff
Fixed but in WKB out - wkb_multi* didnt set the 'size' return value.
authorDavid Blasby <dblasby@gmail.com>
Thu, 25 Oct 2001 18:22:03 +0000 (18:22 +0000)
committerDavid Blasby <dblasby@gmail.com>
Thu, 25 Oct 2001 18:22:03 +0000 (18:22 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@92 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_inout.c

index 2a27e931428c3df14ddcbc7bee90574e9978a620..dacdfd8dea26fc49a2df4f32eb5ac0914aa29596 100644 (file)
@@ -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;