[retro-gtk] retro-environment: Fix security compilation errors



commit 2a4624765c41dd2079c0acfee8f98c0063103c19
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 16 06:56:40 2017 +0100

    retro-environment: Fix security compilation errors
    
    4 instances of:
    error: format not a string literal and no format arguments [-Werror=format-security]

 retro-gtk/retro-environment.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/retro-gtk/retro-environment.c b/retro-gtk/retro-environment.c
index f5ae484..7f13a24 100644
--- a/retro-gtk/retro-environment.c
+++ b/retro-gtk/retro-environment.c
@@ -41,19 +41,19 @@ static void on_log (guint level, const gchar *format, ...) {
 
        switch (level) {
        case RETRO_LOG_LEVEL_DEBUG:
-               g_debug (message);
+               g_debug ("%s", message);
 
                break;
        case RETRO_LOG_LEVEL_INFO:
-               g_info (message);
+               g_info ("%s", message);
 
                break;
        case RETRO_LOG_LEVEL_WARN:
-               g_warning (message);
+               g_warning ("%s", message);
 
                break;
        case RETRO_LOG_LEVEL_ERROR:
-               g_critical (message);
+               g_critical ("%s", message);
 
                break;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]