From f0c35d7f9d2fbc6cb6dc2791341fb996785178bd Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 20 Oct 2000 18:03:26 +0000 Subject: [PATCH] o rcon now prints (hidden) instead of the rcon password * taniwha drops a 900lb security manual on zoid's head nah, make that kg :) o fix a potential buffer overflow --- source/sv_main.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/source/sv_main.c b/source/sv_main.c index 7938dc6..a3605db 100644 --- a/source/sv_main.c +++ b/source/sv_main.c @@ -878,6 +878,7 @@ Redirect all printfs void SVC_RemoteCommand (void) { int i; + int len = 0; char remaining[1024]; if (CheckForFlood(FLOOD_RCON)) return; @@ -892,19 +893,19 @@ void SVC_RemoteCommand (void) } else { - Con_Printf ("Rcon from %s:\n%s\n" - , NET_AdrToString (net_from), net_message.data+4); - - SV_BeginRedirect (RD_PACKET); - remaining[0] = 0; - for (i=2 ; i