mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue