summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2010-07-19 14:00:19 +0000
committerThomas Beierlein <tomjbe@gentoo.org>2010-07-19 14:00:19 +0000
commitea3ae688508448f3dc9d29cffb560ee2487965b9 (patch)
tree39b934af266eb44e48adaa0b5aca75f1dd23d25a /sci-electronics/pcb/files
parentImprove the postinst message, and link to the guide, bug #328671 by Valeo de ... (diff)
downloadhistorical-ea3ae688508448f3dc9d29cffb560ee2487965b9.tar.gz
historical-ea3ae688508448f3dc9d29cffb560ee2487965b9.tar.bz2
historical-ea3ae688508448f3dc9d29cffb560ee2487965b9.zip
Fix for bug #313359. Thanks Diego for reporting and Xartisius for suggestions. Further fixes for some segfaults
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'sci-electronics/pcb/files')
-rw-r--r--sci-electronics/pcb/files/pcb-20091103-png.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/sci-electronics/pcb/files/pcb-20091103-png.patch b/sci-electronics/pcb/files/pcb-20091103-png.patch
new file mode 100644
index 000000000000..aad951d7b00b
--- /dev/null
+++ b/sci-electronics/pcb/files/pcb-20091103-png.patch
@@ -0,0 +1,20 @@
+--- src/hid/png/png.c.orig 2010-07-19 15:36:17.000000000 +0200
++++ src/hid/png/png.c 2010-07-19 15:37:53.000000000 +0200
+@@ -137,6 +137,8 @@
+ NULL
+ };
+
++#define NUM_FILETYPES (sizeof(filetypes)/sizeof(filetypes[0]) - 1)
++
+ HID_Attribute png_attribute_list[] = {
+ /* other HIDs expect this to be first. */
+ {"outfile", "Graphics output file",
+@@ -176,7 +178,7 @@
+ #define HA_use_alpha 8
+
+ {"format", "Graphics file format",
+- HID_Enum, 0, 0, {2, 0, 0}, filetypes, 0},
++ HID_Enum, 0, 0, {NUM_FILETYPES-1, 0, 0}, filetypes, 0},
+ #define HA_filetype 9
+
+ {"png-bloat", "Amount (in/mm/mil/pix) to add to trace/pad/pin edges (1 = 1/100 mil)",