gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gui : fix memset size argument


From: Fred Kiefer
Subject: Re: gui : fix memset size argument
Date: Mon, 12 Apr 2010 16:27:34 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.8) Gecko/20100228 SUSE/3.0.3-1.1.1 Thunderbird/3.0.3

Am 12.04.2010 15:48, schrieb Philippe Roussel:
> Hi all,
> 
> While compiling svn trunk I saw a warning that looked like a real bug.
> If I'm not mistaken, here's the fix in its glorious complexity.
> 
> Philippe
> 
> Index: gui/Source/NSBitmapImageRep+JPEG.m
> ===================================================================
> --- gui/Source/NSBitmapImageRep+JPEG.m        (révision 30131)
> +++ gui/Source/NSBitmapImageRep+JPEG.m        (copie de travail)
> @@ -553,7 +553,7 @@
>        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];

Thank you, applied.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]