From c583a08c53e5ddda6300101342bfda4ab36d05f4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 6 Jun 2000 19:12:19 +0000 Subject: 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 --- src/irc/dcc/dcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irc') 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); -- cgit v1.2.3