diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-19 17:48:42 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-19 17:48:42 +0000 |
commit | 06a6428d833c3242e45e09e1bafb1f06f478fb2b (patch) | |
tree | 4fdf574b1e22d19cb17146858bbe69e152147215 /src/irc | |
parent | 99b29df17cc89eaa10a7eb6ad6b8328a19445501 (diff) | |
download | irssi-06a6428d833c3242e45e09e1bafb1f06f478fb2b.zip |
security fixes from 0.7.97.2
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1017 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/dcc/dcc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c index bc63a6d2..de8601d5 100644 --- a/src/irc/dcc/dcc.c +++ b/src/irc/dcc/dcc.c @@ -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)); } } |