Commit b1a8d3de by Francois Gygi

Fixed uninitialized cmdline


git-svn-id: http://qboxcode.org/svn/qb/trunk@1721 cba15fb0-1239-40c8-b417-11db7ca47a34
parent a7583469
......@@ -128,6 +128,8 @@ void UserInterface::processCmds ( istream &cmdstream, const char *prompt,
{
// read and process commands from cmdstream until done
char cmdline[256];
for ( int i = 0; i < 256; i++ )
cmdline[i] = '\0';
list<Cmd*>::iterator cmd;
const char *separators = " ;\t";
int i,done=0,cmd_read,status;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment