]> granicus.if.org Git - postgis/commitdiff
Fix dangerous use of message string as printf-like format.
authorSandro Santilli <strk@keybit.net>
Tue, 23 Jun 2009 16:46:00 +0000 (16:46 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 23 Jun 2009 16:46:00 +0000 (16:46 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4193 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_inout.c

index 043c4b140e79243b36bbcad3286182f4579f7428..5ea0294dcff154e9ac4048be5e8f1892621779fc 100644 (file)
@@ -461,7 +461,7 @@ Datum LWGEOM_dropBBOX(PG_FUNCTION_ARGS)
 /* for the wkt parser */
 void elog_ERROR(const char* string)
 {
-       elog(ERROR,string);
+       elog(ERROR, "%s", string);
 }
 
 /*