1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 05:53:49 +01:00

tests/rng: alloc shell buffer in .data

Do not allocate the shell buffer on stack to reduce stack usage.
This commit is contained in:
Gaëtan Harter 2019-05-28 15:23:58 +02:00
parent 0e66b18f0c
commit d1c454790f
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -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;