[GRASS-SVN] r67726 - grass/trunk/db/drivers/mysql
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Feb 5 05:46:43 PST 2016
Author: neteler
Date: 2016-02-05 05:46:43 -0800 (Fri, 05 Feb 2016)
New Revision: 67726
Modified:
grass/trunk/db/drivers/mysql/dbe.c
Log:
mysql driver: fix -Wformat-security issue
Modified: grass/trunk/db/drivers/mysql/dbe.c
===================================================================
--- grass/trunk/db/drivers/mysql/dbe.c 2016-02-04 23:34:30 UTC (rev 67725)
+++ grass/trunk/db/drivers/mysql/dbe.c 2016-02-05 13:46:43 UTC (rev 67726)
@@ -43,7 +43,7 @@
if (!replace_variables(name, &datadir, &database)) {
db_d_append_error(_("Unable parse MySQL embedded database name"));
- db_d_append_error(mysql_error(connection));
+ db_d_append_error("%s", mysql_error(connection));
db_d_report_error();
return DB_FAILED;
}
@@ -59,7 +59,7 @@
if (mysql_server_init(4, server_args, NULL)) {
db_d_append_error(_("Cannot initialize MySQL embedded server"));
- db_d_append_error(mysql_error(connection));
+ db_d_append_error("%s", mysql_error(connection));
db_d_report_error();
free(datadir);
free(database);
@@ -78,7 +78,7 @@
if (res == NULL) {
db_d_append_error(_("Unable to connect to MySQL embedded server: "));
- db_d_append_error(mysql_error(connection));
+ db_d_append_error("%s", mysql_error(connection));
db_d_report_error();
return DB_FAILED;
}
More information about the grass-commit
mailing list