Re: Where's the buffer overrun?
Re: Where's the buffer overrun?
- Subject: Re: Where's the buffer overrun?
- From: Chris Suter <email@hidden>
- Date: Thu, 20 Mar 2008 10:50:46 +1100
On 20/03/2008, at 10:38 AM, Nick Zitzmann wrote:
char **returnArray = NSZoneMalloc([self zone], length);
should be:
char **returnArray = NSZoneMalloc([self zone], length * sizeof (char
*));
- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden