Terminate buffer when line is completely filled.

Terminate buffer when line is completely filled.

diff --git a/src/engine/client/cl_console.cpp b/src/engine/client/cl_console.cpp
index 2969418..adf6d41 100644
--- a/src/engine/client/cl_console.cpp
+++ b/src/engine/client/cl_console.cpp
@@ -345,6 +345,7 @@ void Con_Dump_f( void )
         line = con.text + ( l % con.totallines ) * con.linewidth;
         for( i = 0; i < con.linewidth; i++ )
             buffer[i] = line[i] & 0xff;
+        buffer[con.linewidth] = '\0';
         for( x = con.linewidth - 1; x >= 0; x-- )
         {
             if( buffer[x] == ' ' )

GitHub
sha: 606d65c2