Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL11
>
libkate1
> libkate-png.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libkate-png.patch of Package libkate1
--- libkate-0.3.7/tools/kpng.c.orig 2008-11-18 21:57:56.000000000 +0100 +++ libkate-0.3.7/tools/kpng.c 2010-04-13 07:20:19.824993086 +0200 @@ -179,13 +179,13 @@ } } - png_destroy_read_struct(&png_ptr,&info_ptr,png_infopp_NULL); + png_destroy_read_struct(&png_ptr,&info_ptr,NULL); fclose(f); return 0; error: - if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:png_infopp_NULL,png_infopp_NULL); + if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:NULL,NULL); if (f) fclose(f); return -1; } @@ -224,7 +224,7 @@ if (w) *w=png_get_image_width(png_ptr,info_ptr); if (h) *h=png_get_image_height(png_ptr,info_ptr); - png_destroy_read_struct(&png_ptr,&info_ptr,png_infopp_NULL); + png_destroy_read_struct(&png_ptr,&info_ptr,NULL); /* now read the whole file as a binary blob */ fseek(f,0,SEEK_END); @@ -246,7 +246,7 @@ return 0; error: - if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:png_infopp_NULL,png_infopp_NULL); + if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:NULL,NULL); if (f) fclose(f); return -1; }