From 9d9b671cc77440e9b3bfcd74288f09a720c0ee6b Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Wed, 3 Jun 2009 18:18:55 +0000 Subject: Don't cap maxmsglen on loopback connections. Use seperate buffer for stuffcmd processing on client so that something like ‘map foobar;wait;wait;wait;give shells’ works (original Q2 used deferred buffer for this). Don't include netgraph code into release builds. Made ‘changing’ and ‘precache’ commands not available from console, since they may confuse the client when typed manually. Client now handles newlines embedded into ‘cstring’ and ‘cstring2’ layout commands properly. Fixed a crash when displaying inventory. Detect zero bytes embedded into config files and refuse to execute them. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/sys_unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/sys_unix.c') diff --git a/source/sys_unix.c b/source/sys_unix.c index 4fa67d0..fbb56df 100644 --- a/source/sys_unix.c +++ b/source/sys_unix.c @@ -324,7 +324,7 @@ static void tty_parse_input( const char *text ) { s++; } Sys_Printf( "]%s\n", s ); - Cbuf_AddText( s ); + Cbuf_AddText( &cmd_buffer, s ); } else { write( 1, "]\n", 2 ); } @@ -420,7 +420,7 @@ void Sys_RunConsole( void ) { text[ret] = 0; if( !tty_enabled ) { - Cbuf_AddText( text ); + Cbuf_AddText( &cmd_buffer, text ); return; } -- cgit v1.2.3