From d222e1c4a5e1ce36fae2fcfb3d6826da934ba5d8 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 15 Oct 2004 11:48:48 +0000 Subject: [PATCH] Fixed a bug making asSVG return a spurious char at the end. git-svn-id: http://svn.osgeo.org/postgis/trunk@1009 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgeom_svg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lwgeom/lwgeom_svg.c b/lwgeom/lwgeom_svg.c index dd5a12e7d..69e134f10 100644 --- a/lwgeom/lwgeom_svg.c +++ b/lwgeom/lwgeom_svg.c @@ -63,7 +63,7 @@ Datum assvg_geometry(PG_FUNCTION_ARGS) svg = geometry_to_svg(geom, svgrel, precision); - len = strlen(svg) + 5; + len = strlen(svg) + 4; result= palloc(len); *((int *) result) = len; @@ -280,6 +280,9 @@ print_svg_path_rel(char *result, POINTARRAY *pa, int precision) /********************************************************************** * $Log$ + * Revision 1.5 2004/10/15 11:48:48 strk + * Fixed a bug making asSVG return a spurious char at the end. + * * Revision 1.4 2004/10/15 09:41:22 strk * changed precision semantic back to number of decimal digits * -- 2.40.0