]> granicus.if.org Git - postgis/commitdiff
Fix regression
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 29 Oct 2011 20:54:07 +0000 (20:54 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 29 Oct 2011 20:54:07 +0000 (20:54 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8047 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_functions_basic.c

index f308faf1b41fefbc3656ab4f288cd6d8b653590c..65066ba2c64aec02d40fe296ea6ff342701869d6 100644 (file)
@@ -107,7 +107,7 @@ PG_FUNCTION_INFO_V1(LWGEOM_mem_size);
 Datum LWGEOM_mem_size(PG_FUNCTION_ARGS)
 {
        GSERIALIZED *geom = (GSERIALIZED *) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
-       size_t size = VARSIZE(geom) - VARHDRSZ;
+       size_t size = VARSIZE(geom);
        PG_FREE_IF_COPY(geom,0);
        PG_RETURN_INT32(size);
 }