
30 Sep
2006
30 Sep
'06
12:52 p.m.
On Fri, Sep 29, 2006 at 01:19:40PM +0100, Simon Marlow wrote:
inet_ntoa() uses a static buffer, so it isn't threadsafe. So while the current IO version is already broken, putting unsafePerformIO around it makes the problem more likely to manifest, and harder to avoid. We really need to do this in Haskell code, I think.
If it is portable enough then inet_ntop might be another solution. Thanks Ian