(inet_ntop_v4): remember to call ntohl

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6758 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-08-05 12:23:36 +00:00
parent aef4b5add5
commit 4109cb252e

View File

@@ -70,7 +70,7 @@ inet_ntop_v4 (const void *src, char *dst, size_t size)
const char digits[] = "0123456789";
int i;
struct in_addr *addr = (struct in_addr *)src;
u_long a = addr->s_addr;
u_long a = ntohl(addr->s_addr);
const char *orig_dst = dst;
if (size < INET_ADDRSTRLEN) {