Re: Strange malloc/free issue inside a category
Re: Strange malloc/free issue inside a category
- Subject: Re: Strange malloc/free issue inside a category
- From: Jakob Olesen <email@hidden>
- Date: Sun, 30 Jul 2006 20:06:49 +0200
On 30/07/2006, at 19.38, Ken Tozier wrote:
- (NSString *) unicharHexStringFromData
{
int slen = [self length],
dLen = slen * sizeof(unichar);
unichar *dbuf = (unichar *) malloc (dLen), /
How many characters do you need to represent slen bytes as hex?
How many are you allocating?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden