diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-06 19:12:19 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-06 19:12:19 +0000 |
commit | c583a08c53e5ddda6300101342bfda4ab36d05f4 (patch) | |
tree | 26e59894361a87d750598afd3e2adc4e348e599f /src/irc/dcc/dcc.c | |
parent | 69b38e702d315e3fc4f7c24d86725bdc545fdd3e (diff) | |
download | irssi-c583a08c53e5ddda6300101342bfda4ab36d05f4.zip |
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
Diffstat (limited to 'src/irc/dcc/dcc.c')
-rw-r--r-- | src/irc/dcc/dcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c index 4f418555..e514c934 100644 --- a/src/irc/dcc/dcc.c +++ b/src/irc/dcc/dcc.c @@ -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); |