[tracker/34-build-failure-with-werror-format-security] libtracker-data: Fix build with format-security flag
- From: Tim Lunn <timl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/34-build-failure-with-werror-format-security] libtracker-data: Fix build with format-security flag
- Date: Wed, 12 Sep 2018 11:55:42 +0000 (UTC)
commit 0ebfbc8a85613310d6c833031578e8bca9d8dccc
Author: Tim Lunn <tim feathertop org>
Date: Mon Sep 3 11:25:05 2018 +1000
libtracker-data: Fix build with format-security flag
Closes:https://gitlab.gnome.org/GNOME/tracker/issues/34
src/libtracker-data/tracker-data-manager.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 06012b427..e2db6e35e 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -2934,7 +2934,7 @@ create_insert_delete_triggers (TrackerDBInterface *iface,
g_string_append (trigger_query, "END; ");
tracker_db_interface_execute_query (iface, &internal_error,
- trigger_query->str);
+ "%s", trigger_query->str);
g_string_free (trigger_query, TRUE);
if (internal_error) {
@@ -2967,7 +2967,7 @@ create_insert_delete_triggers (TrackerDBInterface *iface,
g_string_append (trigger_query, "END; ");
tracker_db_interface_execute_query (iface, &internal_error,
- trigger_query->str);
+ "%s", trigger_query->str);
g_string_free (trigger_query, TRUE);
if (internal_error) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]