[mednaffe] 30/99: Fix warnings

Stephen Kitt skitt at moszumanska.debian.org
Tue Aug 2 21:00:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

skitt pushed a commit to branch master
in repository mednaffe.

commit 108038e797eb83ec657cc9e4c775db72ee670814
Author: amatcoder at gmail.com <amatcoder at gmail.com@44025b82-9115-564b-7d03-7f3fc60b4744>
Date:   Mon Dec 9 10:53:06 2013 +0000

    Fix warnings
---
 src/command.c  | 6 +++---
 src/mednaffe.c | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/command.c b/src/command.c
index 26a5b6e..28a36df 100644
--- a/src/command.c
+++ b/src/command.c
@@ -128,7 +128,7 @@ gboolean out_watch( GIOChannel *channel, GIOCondition cond, guidata *gui)
                                        GTK_DIALOG_DESTROY_WITH_PARENT,
                                        GTK_MESSAGE_ERROR,
                                        GTK_BUTTONS_CLOSE,
-                                       err);
+                                       "%s", err);
 
       gtk_dialog_run (GTK_DIALOG (dialog));
       gtk_widget_destroy (dialog);
@@ -168,11 +168,11 @@ void child_watch(GPid pid, gint status, guidata *gui)
                                        GTK_DIALOG_DESTROY_WITH_PARENT,
                                        GTK_MESSAGE_ERROR,
                                        GTK_BUTTONS_CLOSE,
-                                       err);
+                                       "%s", err);
                        
       gtk_dialog_run (GTK_DIALOG (dialog));
       gtk_widget_destroy (dialog);
-      printf ("[Mednaffe] %s", err);
+      printf ("[Mednaffe] ***ERROR***\n%s", err);
     }
   #endif
 
diff --git a/src/mednaffe.c b/src/mednaffe.c
index e5d9ebb..d4c3203 100644
--- a/src/mednaffe.c
+++ b/src/mednaffe.c
@@ -49,11 +49,11 @@ void show_error(const gchar *message)
   dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT,
                                    GTK_MESSAGE_ERROR,
                                    GTK_BUTTONS_CLOSE,
-                                   message);
+                                   "%s", message);
                                    
   gtk_dialog_run (GTK_DIALOG (dialog));
   gtk_widget_destroy (dialog);
-  printf(message);
+  printf("%s", message);
 }
 
 void global_selected(GtkTreeSelection *treeselection, guidata *gui)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mednaffe.git



More information about the Pkg-games-commits mailing list