Commit 2ed4680e authored by Niels Möller's avatar Niels Möller
Browse files

Fixed call to inet_aton.

Rev: src/io.c:1.39
parent 67e412bc
......@@ -481,7 +481,7 @@ get_inaddr(struct sockaddr_in * addr,
/* First check for numerical ip-number */
#if 1
/* FIXME: How portable is inet_aton? */
if (!inet_aton(host, addr))
if (!inet_aton(host, &addr->sin_addr))
/* TODO: It is wrong to work with ((unsigned long int) -1)
* directly, as this breaks Linux/Alpha systems. But
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment