[planner] fixes for compilation errors with --with-database
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner] fixes for compilation errors with --with-database
- Date: Mon, 25 Jul 2011 21:36:22 +0000 (UTC)
commit efcaf7c0e704d24c330b934f24478ff74e2af979
Author: Maxim Zakharov <zakhma muli com au>
Date: Fri Jul 22 14:24:35 2011 +1000
fixes for compilation errors with --with-database
https://bugzilla.gnome.org/show_bug.cgi?id=655092
libplanner/mrp-sql.c | 2 +-
src/planner-sql-plugin.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libplanner/mrp-sql.c b/libplanner/mrp-sql.c
index 2992538..529a268 100644
--- a/libplanner/mrp-sql.c
+++ b/libplanner/mrp-sql.c
@@ -2371,7 +2371,7 @@ mrp_sql_load_project (MrpStorageSQL *storage,
#define WRITE_ERROR(e,c) \
G_STMT_START \
-{ g_set_error(e,MRP_ERROR,MRP_ERROR_SAVE_WRITE_FAILED, sql_get_last_error (c)); } \
+{ g_set_error(e,MRP_ERROR,MRP_ERROR_SAVE_WRITE_FAILED, "%s", sql_get_last_error (c)); } \
G_STMT_END
diff --git a/src/planner-sql-plugin.c b/src/planner-sql-plugin.c
index 1cae54e..0a5880b 100644
--- a/src/planner-sql-plugin.c
+++ b/src/planner-sql-plugin.c
@@ -317,7 +317,7 @@ show_error_dialog (PlannerPlugin *plugin,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
- str);
+ "%s", str);
response = gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]