mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
14 lines
595 B
Objective-C
14 lines
595 B
Objective-C
$NetBSD: patch-Source_NSBitmapImageRep+PNG.m,v 1.1 2013/02/26 23:35:25 joerg Exp $
|
|
|
|
--- Source/NSBitmapImageRep+PNG.m.orig 2013-02-26 13:18:16.000000000 +0000
|
|
+++ Source/NSBitmapImageRep+PNG.m
|
|
@@ -359,7 +359,7 @@ static void writer_func(png_structp png_
|
|
|
|
// init structures
|
|
PNGRep = [NSMutableData dataWithLength: 0];
|
|
- png_info_init_3(&png_info, png_sizeof(png_info));
|
|
+ png_info_init_3(&png_info, sizeof(png_info));
|
|
png_set_write_fn(png_struct, PNGRep, writer_func, NULL);
|
|
png_set_IHDR(png_struct, png_info, width, height, depth,
|
|
type, interlace, PNG_COMPRESSION_TYPE_BASE,
|