summaryrefslogtreecommitdiff
path: root/src/irc/dcc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/dcc')
-rw-r--r--src/irc/dcc/dcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c
index 9bfbdd1b..c0d87a07 100644
--- a/src/irc/dcc/dcc.c
+++ b/src/irc/dcc/dcc.c
@@ -158,7 +158,7 @@ void dcc_ip2str(IPADDR *ip, char *host)
/* IPv6 */
net_ip2host(ip, host);
} else {
- memcpy(&addr, &ip->addr, 4);
+ memcpy(&addr, &ip->ip, 4);
g_snprintf(host, MAX_IP_LEN, "%lu",
(unsigned long) htonl(addr));
}
@@ -173,7 +173,7 @@ void dcc_str2ip(const char *str, IPADDR *ip)
addr = strtoul(str, NULL, 10);
ip->family = AF_INET;
addr = (unsigned long) ntohl(addr);
- memcpy(&ip->addr, &addr, 4);
+ memcpy(&ip->ip, &addr, 4);
} else {
/* IPv6 - in standard form */
net_host2ip(str, ip);