summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-12-19 17:48:42 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-12-19 17:48:42 +0000
commit06a6428d833c3242e45e09e1bafb1f06f478fb2b (patch)
tree4fdf574b1e22d19cb17146858bbe69e152147215 /src/irc
parent99b29df17cc89eaa10a7eb6ad6b8328a19445501 (diff)
downloadirssi-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.c3
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));
}
}