• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange malloc/free issue inside a category
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Strange malloc/free issue inside a category (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Strange malloc/free issue inside a category
  • Next by Date: Re: Strange malloc/free issue inside a category
  • Previous by thread: Re: Strange malloc/free issue inside a category
  • Next by thread: Re: Strange malloc/free issue inside a category
  • Index(es):
    • Date
    • Thread