File: fix-ftbfs-hardening.patch

package info (click to toggle)
fprint-demo 20080303git-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 360 kB
  • ctags: 187
  • sloc: ansic: 1,510; makefile: 35; sh: 3
file content (14 lines) | stat: -rw-r--r-- 550 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix FTBFS with hardening flags
Author: Laurent Bigonville <bigon@debian.org>

--- a/src/verify.c
+++ b/src/verify.c
@@ -395,7 +395,7 @@ static void vwin_cb_img_save(GtkWidget *
 	if (!gdk_pixbuf_save(pixbuf, filename, "png", &error, NULL)) {
 		dialog = gtk_message_dialog_new(GTK_WINDOW(mwin_window),
 			GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR,
-			GTK_BUTTONS_CLOSE, error->message);
+			GTK_BUTTONS_CLOSE, "%s", error->message);
 		gtk_dialog_run(GTK_DIALOG(dialog));
 		gtk_widget_destroy(dialog);
 		g_error_free(error);