This is an automated email from the ASF dual-hosted git repository. cederom pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 6379e531de0d73549a5242de1cc6c9ee7839db9b Author: Tiago Medicci <[email protected]> AuthorDate: Mon Apr 20 17:22:26 2026 -0300 system/irtest: Set `irtest` command line size to CONFIG_LINE_MAX Let `irtest` command line size be equal to CONFIG_LINE_MAX so that bigger (or smaller) commands can be set. Signed-off-by: Tiago Medicci <[email protected]> --- system/irtest/main.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system/irtest/main.cxx b/system/irtest/main.cxx index d8534aae6..a50976666 100644 --- a/system/irtest/main.cxx +++ b/system/irtest/main.cxx @@ -24,11 +24,17 @@ * Included Files ****************************************************************************/ +#include <nuttx/config.h> + #include <stdio.h> #include "system/readline.h" #include "cmd.hpp" +#ifndef CONFIG_LINE_MAX +# define CONFIG_LINE_MAX 512 +#endif + /**************************************************************************** * Private Functions ****************************************************************************/ @@ -48,7 +54,7 @@ extern "C" { int main(int argc, char *argv[]) { - char cmdline[512]; + char cmdline[CONFIG_LINE_MAX]; init_device();
