wmbiff: fixed endianness problems connecting to POP and IMAP servers.
commitd0345f10595fc0db032986789483ff39e23c98ec
authorJeremy Sowden <jeremy@azazel.net>
Fri, 28 Jun 2019 15:11:20 +0000 (28 16:11 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 28 Jun 2019 15:26:47 +0000 (28 16:26 +0100)
treeadfe5a4559772297da5d1dd17371ea5ae7ab0fcc
parentdfa571a21b75a397ae23faa95402671999929cfa
wmbiff: fixed endianness problems connecting to POP and IMAP servers.

`addr.sin_addr.s_addr` is a `uint32_t` in NBO, so assigning a
`struct in_addr` cast to `unsigned long` will break on 64-bit big-endian
architectures.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
wmbiff/wmbiff/socket.c