shell: Allocate proper amount of history slab memory

This patch increases the amount of slab memory per item for the shell
history to match the maximum command input buffer size plus the
accounting information for the dnode list item.

Signed-off-by: Andy Gross <andy.gross@linaro.org>
This commit is contained in:
Andy Gross 2019-01-28 15:53:48 -06:00 committed by Anas Nashif
commit 1e968a1976
3 changed files with 10 additions and 8 deletions

View file

@ -7,12 +7,6 @@
#include <shell/shell_history.h>
#include <string.h>
struct shell_history_item {
sys_dnode_t dnode;
u16_t len;
char data[1];
};
void shell_history_mode_exit(struct shell_history *history)
{
history->current = NULL;