summarylogtreecommitdiffstats
path: root/libpng-1.5.8.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libpng-1.5.8.patch')
-rw-r--r--libpng-1.5.8.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/libpng-1.5.8.patch b/libpng-1.5.8.patch
new file mode 100644
index 000000000000..8ab283259f79
--- /dev/null
+++ b/libpng-1.5.8.patch
@@ -0,0 +1,16 @@
+--- cimg.cc
++++ cimg.cc
+@@ -94,11 +95,11 @@
+ ct == PNG_COLOR_TYPE_GRAY_ALPHA)
+ png_set_gray_to_rgb(pngp);
+
+- alloc(pngp->width,pngp->height);
++ alloc(width,height);
+ if (!ok) { fclose(f); return; }
+ ok = 0;
+
+- for(i=0;i<pngp->height;i++) {
++ for(i=0;i<height;i++) {
+ png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL);
+ }
+