On Tue, Jan 12, 2010 at 8:53 AM, John <[email protected]> wrote:
> --- In [email protected], Paul Herring <pauljherr...@...> wrote:
>>
>> On Tue, Jan 12, 2010 at 7:06 AM, John <jm5...@...> wrote:
>> > --- In [email protected], John Gaughan <john@> wrote:
>> >>
>> >> Try initializing the memory to which newstr points before trying to use
>> >> it: this includes getting its length.
>> >
>> > 'getting' -> 'setting', or am I reading it wrong?
>>
>> You're reading it wrong.
>>
>> They're doing the equivalent of:
>
> Paul - I know why the code is wrong; what I don't understand is how 'getting 
> its length' initializes the memory pointed to by newstr.

It doesn't. I misunderstood your comment.


-- 
PJH

http://shabbleland.myminicity.com/
http://www.chavgangs.com/register.php?referer=9375
http://www.kongregate.com/?referrer=Shabble

Reply via email to