Fix stack smashing when command into console where > 80. maximum allowed is now 511

This commit is contained in:
Ed Gonzalez 2015-06-22 17:23:58 -05:00
parent 9221d5b0b8
commit 2ca2373c81

View file

@ -94,9 +94,9 @@ static command_def commands[] =
// #################################################################
unsigned int command(void)
{
char line[80];
char line[512];
char *pLine = line;
get_line(pLine, sizeof(line));
get_line(pLine, 512 * sizeof(char));
process_command(line);