summaryrefslogtreecommitdiff
path: root/package/libgd/patches
diff options
context:
space:
mode:
Diffstat (limited to 'package/libgd/patches')
-rw-r--r--package/libgd/patches/patch-gd_io_h10
-rw-r--r--package/libgd/patches/patch-src_gd_bmp_c11
2 files changed, 11 insertions, 10 deletions
diff --git a/package/libgd/patches/patch-gd_io_h b/package/libgd/patches/patch-gd_io_h
deleted file mode 100644
index 1d083673c..000000000
--- a/package/libgd/patches/patch-gd_io_h
+++ /dev/null
@@ -1,10 +0,0 @@
---- gd-2.0.36.orig/gd_io.h 2007-11-27 09:30:34.000000000 +0100
-+++ gd-2.0.36/gd_io.h 2012-10-14 16:10:30.000000000 +0200
-@@ -26,6 +26,7 @@ typedef struct gdIOCtx
-
- void (*gd_free) (struct gdIOCtx *);
-
-+ void *data;
- }
- gdIOCtx;
-
diff --git a/package/libgd/patches/patch-src_gd_bmp_c b/package/libgd/patches/patch-src_gd_bmp_c
new file mode 100644
index 000000000..cfbffca74
--- /dev/null
+++ b/package/libgd/patches/patch-src_gd_bmp_c
@@ -0,0 +1,11 @@
+--- libgd-2.1.0.orig/src/gd_bmp.c 2013-06-25 11:58:23.000000000 +0200
++++ libgd-2.1.0/src/gd_bmp.c 2013-12-08 16:23:11.000000000 +0100
+@@ -792,7 +792,7 @@ static int bmp_read_1bit(gdImagePtr im,
+ }
+
+ /* The line must be divisible by 4, else its padded with NULLs */
+- padding = ((int)ceill(0.1 * info->width)) % 4;
++ padding = ((int)ceil(0.1 * info->width)) % 4;
+ if (padding) {
+ padding = 4 - padding;
+ }