diff options
author | Timo Sirainen <cras@irssi.org> | 2001-03-04 02:58:26 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-03-04 02:58:26 +0000 |
commit | 38fbd48712b709db055c096e11c7684e8a088826 (patch) | |
tree | da35029ff6be140c2907c66deed39d80e171e5bb /src | |
parent | 0b76253492e867e3552cd3c2469ac3b23bef9061 (diff) | |
download | irssi-38fbd48712b709db055c096e11c7684e8a088826.zip |
save_ips() wasn't working properly..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1338 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/core/servers-setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c index 39f9be74..a273f86f 100644 --- a/src/core/servers-setup.c +++ b/src/core/servers-setup.c @@ -43,7 +43,7 @@ static void save_ips(IPADDR *ip4, IPADDR *ip6, else { if (*save_ip4 == NULL) *save_ip4 = g_new(IPADDR, 1); - memcpy(*save_ip4, &ip4, sizeof(IPADDR)); + memcpy(*save_ip4, ip4, sizeof(IPADDR)); } if (ip6->family == 0) @@ -51,7 +51,7 @@ static void save_ips(IPADDR *ip4, IPADDR *ip6, else { if (*save_ip6 == NULL) *save_ip6 = g_new(IPADDR, 1); - memcpy(*save_ip6, &ip6, sizeof(IPADDR)); + memcpy(*save_ip6, ip6, sizeof(IPADDR)); } } |