diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/edit.c | 11 | ||||
-rw-r--r-- | commands/oftree.c | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/commands/edit.c b/commands/edit.c index 5a2da7d034..98af583574 100644 --- a/commands/edit.c +++ b/commands/edit.c @@ -379,7 +379,16 @@ static int do_edit(int argc, char *argv[]) return COMMAND_ERROR_USAGE; screenwidth = 80; - screenheight = 25; + + /* + * The EFI simple text output protocol wraps to the next line and scrolls + * down when we write to the right bottom screen position. Reduce the number + * of rows by one to work around this. + */ + if (IS_ENABLED(CONFIG_ARCH_EFI)) + screenheight = 24; + else + screenheight = 25; /* check if we are called as "sedit" instead of "edit" */ if (*argv[0] == 's') { diff --git a/commands/oftree.c b/commands/oftree.c index 983a0a59ea..49976bc02a 100644 --- a/commands/oftree.c +++ b/commands/oftree.c @@ -42,7 +42,7 @@ static int do_oftree(int argc, char *argv[]) { struct fdt_header *fdt = NULL; - int size; + size_t size; int opt; int probe = 0; char *load = NULL; |