From 565c3f494b51715cf67575fc5951c6103049f29d Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Sun, 1 Nov 2015 22:47:08 +0000
Subject: Always set a string literal as string format to please
 -Wformat-security.

git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@602 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
---
 ChangeLog                 | 6 ++++++
 src/glibext/gbufferline.c | 2 +-
 src/gtkext/easygtk.c      | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6b748c9..df3c77c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+15-11-01  Cyrille Bagard <nocbos@gmail.com>
+
+	* src/glibext/gbufferline.c:
+	* src/gtkext/easygtk.c:
+	Always set a string literal as string format to please -Wformat-security.
+
 15-10-27  Cyrille Bagard <nocbos@gmail.com>
 
 	* tools/gendocs/exporter.py:
diff --git a/src/glibext/gbufferline.c b/src/glibext/gbufferline.c
index 859b6ac..7768a0e 100644
--- a/src/glibext/gbufferline.c
+++ b/src/glibext/gbufferline.c
@@ -1356,7 +1356,7 @@ void g_buffer_line_export(GBufferLine *line, buffer_export_context *ctx, BufferE
         switch (type)
         {
             case BET_TEXT:
-                if (i > 0) dprintf(ctx->fd, ctx->sep);
+                if (i > 0) dprintf(ctx->fd, "%s", ctx->sep);
                 break;
             default:
                 break;
diff --git a/src/gtkext/easygtk.c b/src/gtkext/easygtk.c
index 27377b9..5348265 100644
--- a/src/gtkext/easygtk.c
+++ b/src/gtkext/easygtk.c
@@ -1139,7 +1139,7 @@ gint qck_show_question(GtkWindow *parent, const char *title, const char *questio
                                     GTK_DIALOG_DESTROY_WITH_PARENT,
                                     GTK_MESSAGE_QUESTION,
                                     GTK_BUTTONS_YES_NO,
-                                    question);
+                                    "%s", question);
 
     gtk_window_set_title(GTK_WINDOW(dialog), title);
 
-- 
cgit v0.11.2-87-g4458