1
0
mirror of https://github.com/irssi/irssi.git synced 2025-01-03 14:56:47 -05:00

Replying to dcc get and chat requests didn't work.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@299 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-06 19:12:19 +00:00 committed by cras
parent 69b38e702d
commit c583a08c53

View File

@ -265,7 +265,7 @@ static void dcc_get_address(const char *str, IPADDR *ip)
if (strchr(str, ':') == NULL) {
/* normal IPv4 address in 32bit number form */
addr = atol(str);
addr = strtoul(str, NULL, 10);
ip->family = AF_INET;
addr = (unsigned long) ntohl(addr);
memcpy(&ip->addr, &addr, 4);