Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 8fb08d5aebc0e5a3eecfadd7f83bd081 > files > 1

gnubik-2.4.1-3.mga5.src.rpm

--- gnubik-2.4.1/src/menus.c.fmt_str	2014-04-15 01:11:52.139655734 +0300
+++ gnubik-2.4.1/src/menus.c	2014-04-15 01:12:19.710381178 +0300
@@ -549,7 +549,7 @@
   dialog = gtk_message_dialog_new (parent,
 				   GTK_DIALOG_MODAL,
 				   GTK_MESSAGE_ERROR,
-				   GTK_BUTTONS_CLOSE, message);
+				   GTK_BUTTONS_CLOSE, "%s", message);
   g_free (message);
 
   gtk_window_set_title (GTK_WINDOW (dialog), _("Gnubik error"));
--- gnubik-2.4.1/src/swatch.c.fmt_str	2012-01-07 19:29:10.000000000 +0200
+++ gnubik-2.4.1/src/swatch.c	2014-04-15 01:10:26.245511641 +0300
@@ -66,7 +66,7 @@
 	      }
 	  }
 	else
-	  g_warning ("Invalid color property for swatch");
+	  g_warning ("%s", "Invalid color property for swatch");
       }
       break;
     case PROP_TEXTURE:
@@ -201,7 +201,7 @@
 
   if (selection_data->length < 0)
     {
-      g_warning ("Empty drag data");
+      g_warning ("%s", "Empty drag data");
       success = FALSE;
       goto end;
     }
@@ -216,7 +216,7 @@
 	if ((selection_data->format != 16) || (selection_data->length != 8))
 	  {
 	    success = FALSE;
-	    g_warning ("Received invalid color data");
+	    g_warning ("%s", "Received invalid color data");
 	    goto end;
 	  }
 
@@ -255,7 +255,7 @@
 	    utf8 = g_locale_to_utf8 (*s, -1, 0, 0, &gerr);
 	    if (gerr)
 	      {
-		g_warning (gerr->message);
+		g_warning ("%s", gerr->message);
 		g_clear_error (&gerr);
 		gerr = 0;
 		continue;
@@ -265,7 +265,7 @@
 	    filename = g_filename_from_uri (utf8, 0, &gerr);
 	    if (gerr)
 	      {
-		g_warning (gerr->message);
+		g_warning ("%s", gerr->message);
 		g_clear_error (&gerr);
 		continue;
 	      }
@@ -286,7 +286,7 @@
       }
       break;
     default:
-      g_warning ("Unsupported drag data type");
+      g_warning ("%s", "Unsupported drag data type");
       break;
     }