aboutsummaryrefslogtreecommitdiffstats
path: root/main/inkscape/inkscape-png15.patch
blob: 7318adc5d63e52b62acb8bb152e77a57a348b60b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- inkscape-0.48.1.orig/src/sp-image.cpp
+++ inkscape-0.48.1/src/sp-image.cpp
@@ -388,7 +388,7 @@
                 {
                     char* name = 0;
                     int compression_type = 0;
-                    char* profile = 0;
+                    png_byte* profile = 0;
                     png_uint_32 proflen = 0;
                     if ( png_get_iCCP(pngPtr, infoPtr, &name, &compression_type, &profile, &proflen) ) {
 //                                         g_message("Found an iCCP chunk named [%s] with %d bytes and comp %d", name, proflen, compression_type);
--- inkscape-0.48.1.orig/src/helper/png-write.cpp
+++ inkscape-0.48.1/src/helper/png-write.cpp
@@ -165,7 +165,7 @@
     /* Set error handling.  REQUIRED if you aren't supplying your own
      * error hadnling functions in the png_create_write_struct() call.
      */
-    if (setjmp(png_ptr->jmpbuf)) {
+    if (setjmp(png_jmpbuf(png_ptr))) {
         /* If we get here, we had a problem reading the file */
         fclose(fp);
         png_destroy_write_struct(&png_ptr, &info_ptr);
--- inkscape-0.48.1.orig/src/extension/internal/pdfinput/svg-builder.cpp
+++ inkscape-0.48.1/src/extension/internal/pdfinput/svg-builder.cpp
@@ -1443,7 +1443,7 @@
         return NULL;
     }
     // Set error handler
-    if (setjmp(png_ptr->jmpbuf)) {
+    if (setjmp(png_jmpbuf(png_ptr))) {
         png_destroy_write_struct(&png_ptr, &info_ptr);
         return NULL;
     }