Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 91163 Details for
Bug 139338
gif2png failes to compile after upgrading to libpng-1.2.12
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gif2png-libpng.patch
gif2png-libpng.patch (text/plain), 1.01 KB, created by
michael@smith-li.com
on 2006-07-07 14:01:51 UTC
(
hide
)
Description:
gif2png-libpng.patch
Filename:
MIME Type:
Creator:
michael@smith-li.com
Created:
2006-07-07 14:01:51 UTC
Size:
1.01 KB
patch
obsolete
>--- work/gif2png-2.5.1/gif2png.c.orig 2006-07-07 16:40:33.000000000 -0400 >+++ work/gif2png-2.5.1/gif2png.c 2006-07-07 16:43:25.000000000 -0400 >@@ -135,7 +135,7 @@ > unsigned long hist_maxvalue; > int passcount; > int errtype, errorcount = 0; >- png_text software; >+ png_text comment, software; > > /* these volatile declarations prevent gcc warnings ("variable might be > * clobbered by `longjmp' or `vfork'") */ >@@ -517,10 +517,15 @@ > j = s->size; > if (j > 0 && data[j-1] == '\0') /* some apps include a NULL in GIF comment */ > --j; >- if (j<500) { >- png_write_tEXt(png_ptr, "Comment", (png_charp)data, j); >+ if (j<1000) { >+ comment.compression = PNG_TEXT_COMPRESSION_NONE; > } else { >- png_write_zTXt(png_ptr, "Comment", (png_charp)data, j, 0); >+ comment.compression = PNG_TEXT_COMPRESSION_zTXt; >+ comment.key = "Comment"; >+ comment.text = data; >+ comment.text_length = j; >+ >+ png_set_text(png_ptr, info_ptr, &comment, 1); > } > break; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 139338
: 91163 |
91164