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:
parent
69b38e702d
commit
c583a08c53
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user