From d1c454790fff0edf64a88a4fd8663a86d10a32c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Tue, 28 May 2019 15:23:58 +0200 Subject: [PATCH] tests/rng: alloc shell buffer in .data Do not allocate the shell buffer on stack to reduce stack usage. --- tests/rng/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rng/main.c b/tests/rng/main.c index ff26a95a40..621c618f6d 100644 --- a/tests/rng/main.c +++ b/tests/rng/main.c @@ -260,7 +260,7 @@ static int cmd_speed(int argc, char **argv) int main(void) { puts("Starting shell..."); - char line_buf[SHELL_DEFAULT_BUFSIZE]; + static char line_buf[SHELL_DEFAULT_BUFSIZE]; shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE); return 0;