ws2_32/tests: Avoid usage of inet_ntoa since it's returns is static

Bruno Jesus 00cpxxx at gmail.com
Sat Mar 31 15:16:06 CDT 2012


As seen in test.winehq.org for win7 a test that is supposed to pass is failing:
sock.c:4723: Test failed: Local socket address is different 0.1.0.0 != 0.1.0.0

But that text does not make any sense... Further study showed I was
using inet_ntoa twice in the ok() call but inet_ntoa returns static
memory so the ok() dump the same ip twice. Now I'm backing up one of
the ips so it does not happen anymore.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ws2_32-tests-fix-a-test.patch
Type: application/octet-stream
Size: 1900 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120331/407fc37a/attachment.obj>


More information about the wine-patches mailing list