[GRASS-SVN] r67727 - grass/branches/releasebranch_7_0/db/drivers/mysql
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Feb 5 05:49:48 PST 2016
Author: neteler
Date: 2016-02-05 05:49:48 -0800 (Fri, 05 Feb 2016)
New Revision: 67727
Modified:
grass/branches/releasebranch_7_0/db/drivers/mysql/dbe.c
Log:
mysql driver: fix -Wformat-security issue (trunk, r67726)
Modified: grass/branches/releasebranch_7_0/db/drivers/mysql/dbe.c
===================================================================
--- grass/branches/releasebranch_7_0/db/drivers/mysql/dbe.c 2016-02-05 13:46:43 UTC (rev 67726)
+++ grass/branches/releasebranch_7_0/db/drivers/mysql/dbe.c 2016-02-05 13:49:48 UTC (rev 67727)
@@ -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