security fixes from 0.7.97.2

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1017 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-19 17:48:42 +00:00 committed by cras
commit 06a6428d83
6 changed files with 21 additions and 18 deletions

View file

@ -138,7 +138,8 @@ void dcc_make_address(IPADDR *ip, char *host)
net_ip2host(ip, host);
} else {
memcpy(&addr, &ip->addr, 4);
sprintf(host, "%lu", (unsigned long) htonl(addr));
g_snprintf(host, MAX_IP_LEN, "%lu",
(unsigned long) htonl(addr));
}
}