]> granicus.if.org Git - postgis/commitdiff
fixed arg number in buffer third arg
authorSandro Santilli <strk@keybit.net>
Wed, 13 Oct 2004 18:49:56 +0000 (18:49 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 13 Oct 2004 18:49:56 +0000 (18:49 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@994 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_geos.c

index 80c1df11110a9b3e597d9acec44313ba5ed9e13b..c6d656147ee2a69c898777983e728f18d5374e95 100644 (file)
@@ -560,7 +560,7 @@ Datum buffer(PG_FUNCTION_ARGS)
 
        geom1 = (PG_LWGEOM *)  PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
        size = PG_GETARG_FLOAT8(1);
-       if ( PG_NARGS() > 2 ) quadsegs = PG_GETARG_INT32(3);
+       if ( PG_NARGS() > 2 ) quadsegs = PG_GETARG_INT32(2);
 
        initGEOS(MAXIMUM_ALIGNOF);