summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/dcc/dcc.c2
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);