53ce4ff
From c539d49d06fea9c6a9efb4e684a8837b82889f7f Mon Sep 17 00:00:00 2001
53ce4ff
From: Lubomir Rintel <lkundrak@v3.sk>
53ce4ff
Date: Wed, 4 Dec 2013 23:16:52 +0100
53ce4ff
Subject: [PATCH] Fix build with -Werror=format-security
53ce4ff
53ce4ff
Fedora, starting with version 21, will enable this flag in order to limit
53ce4ff
potentially insecure uses of format strings. It is required for format strings
53ce4ff
to be constant now.
53ce4ff
---
53ce4ff
 corrida/console.c | 11 +----------
53ce4ff
 1 file changed, 1 insertion(+), 10 deletions(-)
53ce4ff
53ce4ff
diff --git a/corrida/console.c b/corrida/console.c
53ce4ff
index 29acc3b..de35b69 100644
53ce4ff
--- a/corrida/console.c
53ce4ff
+++ b/corrida/console.c
53ce4ff
@@ -15,14 +15,5 @@ void corrida_printf( char *message )
53ce4ff
 
53ce4ff
 void console_printf( char *message )
53ce4ff
 {
53ce4ff
-  gboolean corrida_printf_switch = TRUE;
53ce4ff
-  char string[MAX_CORRIDA_STRLEN];
53ce4ff
-  
53ce4ff
-  if (corrida_printf_switch == TRUE) {
53ce4ff
-    strcpy (string, APPLICATION_NAME);
53ce4ff
-    strcat (string, ": ");
53ce4ff
-    strcat (string, message);
53ce4ff
-    strcat (string, "\n");
53ce4ff
-    printf (string);
53ce4ff
-  }
53ce4ff
+  printf (APPLICATION_NAME ": %s\n", message);
53ce4ff
 }
53ce4ff
-- 
53ce4ff
1.8.4.2
53ce4ff