From 2ca2373c81e95f0e3cd86c763089b14f571b6dc0 Mon Sep 17 00:00:00 2001 From: Ed Gonzalez Date: Mon, 22 Jun 2015 17:23:58 -0500 Subject: [PATCH] Fix stack smashing when command into console where > 80. maximum allowed is now 511 --- DSP_API/SmartSDR_Interface/cmd_engine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DSP_API/SmartSDR_Interface/cmd_engine.c b/DSP_API/SmartSDR_Interface/cmd_engine.c index ff0ba2d..ce2d205 100644 --- a/DSP_API/SmartSDR_Interface/cmd_engine.c +++ b/DSP_API/SmartSDR_Interface/cmd_engine.c @@ -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);