darcs patch: Implementation of aton and ntoa outside ... (and 1 more)

Ian Lynagh igloo at earth.li
Sat Sep 30 12:52:02 EDT 2006

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.


More information about the Libraries mailing list