mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2026-01-06 08:29:56 +01:00
Fix stack smashing when command into console where > 80. maximum allowed is now 511
This commit is contained in:
parent
9221d5b0b8
commit
2ca2373c81
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue