border check fixed

This commit is contained in:
Thomas Klaehn 2016-08-30 13:47:12 +02:00
parent cabc27c6c8
commit b777ab9e6f

View File

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