From: Ilpo Järvinen (ilpo.jarvinen@helsinki.fi)
Date: 01/05/06
Date: Thu, 5 Jan 2006 14:27:49 +0200 (EET) From: "Ilpo Järvinen" <ilpo.jarvinen@helsinki.fi> Subject: Re: tcptrace-bugs Static variable returns of HostName() are not consider by callers Message-ID: <Pine.LNX.4.58.0601051421200.22110@kivilampi-30.cs.helsinki.fi>
On Wed, 4 Jan 2006, Joshua Blanton wrote:
> Hm, it seems to me that the suggested fix is sufficient... In the
> case of printf() (and any other function that would potentially
> re-use the pointer more than once in an instance) we need to do some
> clean-up - but in the case of printf(), the cleanup is trivial.
> Just split the line printed into multiple lines and it All Gets
> Better. Existing code is already safe from this bug, other than
> debug messages, so why not just fix the debug messages?
Here's a patch about the modifications I've done to fix this bug earlier,
in case you want to use splitted printf() approach...
-- i.
This archive was generated by hypermail 2.1.7 : 01/05/06 EST