From b777ab9e6ff55c6ce8772fc00319d5f1952094f6 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Tue, 30 Aug 2016 13:47:12 +0200 Subject: [PATCH] border check fixed --- source/firmware/kernel/shell_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/firmware/kernel/shell_commands.c b/source/firmware/kernel/shell_commands.c index 519e6d2..52fc4dc 100644 --- a/source/firmware/kernel/shell_commands.c +++ b/source/firmware/kernel/shell_commands.c @@ -67,7 +67,7 @@ static void *cmd_list_all_commands_cb(const char *cmd) int i, len = list_get_len(&shell_object.command_list); drv_write(shell_object.shell_device, greeter, strlen(greeter)); - for(i = 0; i < (len - 1); i++) { + for(i = 0; i < (len); i++) { if(NULL != it) { struct command *command = (struct command *)it->data; drv_write(shell_object.shell_device, command->command, strlen(command->command));