freebsd-ports/net-p2p/opendchub/files/patch-buffer_overflow_fix
Alexey Dokuchaev 1bca823dd3 - Fix buffer overflow [1]
- Fix telnet vulnerability [2]
- Unbreak and unforbid
- Bump PORTREVISION

VuXML:		cdf14b68-3ff9-11d9-8405-00065be4b5b6 [1]
Obtained from:	Gentoo CVS [1]
		project's patch tracker at sf.net [2]
2005-02-13 11:24:54 +00:00

12 lines
414 B
Plaintext

--- src/commands.c.orig Sun Feb 13 17:16:37 2005
+++ src/commands.c Sun Feb 13 17:17:18 2005
@@ -2842,7 +2842,7 @@
{
char move_string[MAX_HOST_LEN+20];
- sprintf(move_string, "$ForceMove %s", buf);
+ snprintf(move_string, MAX_HOST_LEN, "$ForceMove %s", buf);
send_to_humans(move_string, REGULAR | REGISTERED | OP, user);
remove_all(UNKEYED | NON_LOGGED | REGULAR | REGISTERED | OP, 1, 1);