]> granicus.if.org Git - postgis/commitdiff
Apply bug in BOX2DFLOAT4_in function due to GSERIALIZED_ON change (#1020) from dustymugs
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 14 Jun 2011 04:26:58 +0000 (04:26 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 14 Jun 2011 04:26:58 +0000 (04:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7391 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_box2dfloat4.c

index 0fbca2808e2e4987f15cab0d181bf7a49f65884f..772a5b9c20139f6f4a6cfefeb217d0374c075a0d 100644 (file)
@@ -42,7 +42,7 @@ Datum BOX2DFLOAT4_in(PG_FUNCTION_ARGS)
                elog(ERROR,"box2d parser - doesnt start with BOX(");
                PG_RETURN_NULL();
        }
-       nitems = sscanf(str,"BOX(%f %f,%f %f)", box.xmin, box.ymin, box.xmax, box.ymax);
+       nitems = sscanf(str,"BOX(%f %f,%f %f)", &box.xmin, &box.ymin, &box.xmax, &box.ymax);
        if (nitems != 4)
        {
                elog(ERROR,"box2d parser - couldnt parse.  It should look like: BOX(xmin ymin,xmax ymax)");