]> git.pld-linux.org Git - packages/pcb.git/commitdiff
- fix format string errors auto/th/pcb-20080202-8
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jul 2013 17:57:17 +0000 (19:57 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jul 2013 17:57:17 +0000 (19:57 +0200)
- rel 8

format-security.patch [new file with mode: 0644]
pcb.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..2bfffa5
--- /dev/null
@@ -0,0 +1,40 @@
+--- pcb-20080202/src/hid/gtk/gui-dialog.c.orig 2013-07-14 19:53:48.220483817 +0200
++++ pcb-20080202/src/hid/gtk/gui-dialog.c      2013-07-14 19:54:17.860775619 +0200
+@@ -97,7 +97,7 @@
+                                  | GTK_DIALOG_DESTROY_WITH_PARENT,
+                                  GTK_MESSAGE_INFO,
+                                  GTK_BUTTONS_OK,
+-                                 GetInfoString ()
++                                 "%s", GetInfoString ()
+                                  );
+   gtk_dialog_run (GTK_DIALOG (dialog));
+@@ -142,7 +142,7 @@
+                                  GTK_DIALOG_MODAL |
+                                  GTK_DIALOG_DESTROY_WITH_PARENT,
+                                  GTK_MESSAGE_WARNING, GTK_BUTTONS_OK,
+-                                 message);
++                                 "%s", message);
+   gtk_dialog_run (GTK_DIALOG (dialog));
+   gtk_widget_destroy (dialog);
+@@ -169,7 +169,7 @@
+                                  GTK_DIALOG_MODAL |
+                                  GTK_DIALOG_DESTROY_WITH_PARENT,
+                                  GTK_MESSAGE_QUESTION,
+-                                 GTK_BUTTONS_NONE, message);
++                                 GTK_BUTTONS_NONE, "%s", message);
+   gtk_dialog_add_buttons (GTK_DIALOG (dialog), 
+                         cancelmsg, GTK_RESPONSE_CANCEL,
+                         okmsg, GTK_RESPONSE_OK,
+--- pcb-20080202/src/hid/gtk/gui-top-window.c.orig     2013-07-14 19:55:25.204772217 +0200
++++ pcb-20080202/src/hid/gtk/gui-top-window.c  2013-07-14 19:55:48.758337617 +0200
+@@ -2508,7 +2508,7 @@
+     ghidgui->bg_pixbuf = gdk_pixbuf_new_from_file(bg_image_file, &err);
+   if (err)
+     {
+-    g_error(err->message);
++    g_error("%s", err->message);
+     g_error_free(err);
+     }
+   ghid_build_pcb_top_window ();
index a39b125ad9e3cd533e6414c72815c8a658acfe81..6d90b1af0125122768ed6df6c7589e189ebdfe76 100644 (file)
--- a/pcb.spec
+++ b/pcb.spec
@@ -2,13 +2,14 @@ Summary:      Printed Circuit Board design tool
 Summary(pl.UTF-8):     PCB - narzędzie do projektowania płytek drukowanych
 Name:          pcb
 Version:       20080202
-Release:       7
+Release:       8
 License:       GPL
 Group:         X11/Applications
 # devel snaps: http://dl.sourceforge.net/pcb/
 Source0:       http://dl.sourceforge.net/pcb/%{name}-%{version}.tar.gz
 # Source0-md5: 933eda642f3838b24d417224693f8386
 #Source0:      ftp://ftp.uni-ulm.de/pub/pcb/mirror/%{name}-%{version}.tar.gz
+Patch0:                format-security.patch
 URL:           http://pcb.sourceforge.net/
 BuildRequires: bison
 BuildRequires: flex
@@ -32,6 +33,7 @@ płytek drukowanych.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export LDFLAGS="-L%{_x_libraries}"
This page took 0.079559 seconds and 4 git commands to generate.