]> granicus.if.org Git - postgis/commitdiff
looser BOX3D parser
authorSandro Santilli <strk@keybit.net>
Tue, 6 Sep 2005 08:28:05 +0000 (08:28 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 6 Sep 2005 08:28:05 +0000 (08:28 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1887 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_box3d.c

index c320e6b6c57660811ad4dd53b00439709c9d283d..b6f7cfbe5bcd8b755409f06db835151090e5e4d1 100644 (file)
@@ -70,12 +70,12 @@ Datum BOX3D_in(PG_FUNCTION_ARGS)
                 PG_RETURN_NULL();
        }
 
-       nitems = sscanf(str,"BOX3D(%le %le %le,%le %le %le)",
+       nitems = sscanf(str,"BOX3D(%le %le %le ,%le %le %le)",
                &box->xmin, &box->ymin, &box->zmin,
                &box->xmax, &box->ymax, &box->zmax);
        if (nitems != 6 )
        {
-               nitems = sscanf(str,"BOX3D(%le %le,%le %le)",
+               nitems = sscanf(str,"BOX3D(%le %le ,%le %le)",
                        &box->xmin, &box->ymin, &box->xmax, &box->ymax);
                if (nitems != 4)
                {