[GRASS-SVN] r69362 - grass-addons/grass7/vector/v.convert

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 3 13:21:48 PDT 2016


Author: neteler
Date: 2016-09-03 13:21:48 -0700 (Sat, 03 Sep 2016)
New Revision: 69362

Modified:
   grass-addons/grass7/vector/v.convert/att.c
Log:
v.convert addon: fix compile error

Modified: grass-addons/grass7/vector/v.convert/att.c
===================================================================
--- grass-addons/grass7/vector/v.convert/att.c	2016-09-03 20:19:56 UTC (rev 69361)
+++ grass-addons/grass7/vector/v.convert/att.c	2016-09-03 20:21:48 UTC (rev 69362)
@@ -61,7 +61,7 @@
 	    fi->table, clen);
     db_append_string(&sql, buf);
 
-    G_debug(1, db_get_string(&sql));
+    G_debug(1, "%s", db_get_string(&sql));
 
     driver = db_start_driver(fi->driver);
     if (driver == NULL)
@@ -102,7 +102,7 @@
 	sprintf(buf, "insert into %s values ( %d, '%s')", fi->table, cat,
 		db_get_string(&lab));
 	db_set_string(&sql, buf);
-	G_debug(3, db_get_string(&sql));
+	G_debug(3, "%s", db_get_string(&sql));
 
 	if (db_execute_immediate(driver, &sql) != DB_OK) {
 	    G_fatal_error(_("Unable to insert new record: '%s'"),



More information about the grass-commit mailing list