* Source/NSBitmapImageRep+JPEG.m (-_JPEGRepresentationWithProperties:errorMessage:): Use the

correct size for the structure in memset.
Patch by Philippe Roussel <p.o.roussel@free.fr>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30132 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2010-04-12 14:27:37 +00:00
parent f2fd7b10c2
commit f4908e6f24
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2010-04-12 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBitmapImageRep+JPEG.m
(-_JPEGRepresentationWithProperties:errorMessage:): Use the
correct size for the structure in memset.
Patch by Philippe Roussel <p.o.roussel@free.fr>.
2010-04-10 Eric Wasylishen <ewasylishen@gmail.com>
* Headers/AppKit/NSWindow.h

View file

@ -553,7 +553,7 @@ static void gs_jpeg_memory_dest_destroy (j_compress_ptr cinfo)
return nil;
}
memset((void*)&cinfo, 0, sizeof(struct jpeg_decompress_struct));
memset((void*)&cinfo, 0, sizeof(struct jpeg_compress_struct));
imageSource = [self bitmapData];
sPP = [self samplesPerPixel];