diff options
-rw-r--r-- | Library/UefiShellUfmCommandLib/tbi/win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/UefiShellUfmCommandLib/tbi/win.c b/Library/UefiShellUfmCommandLib/tbi/win.c index 6ef09a2..fc8eeed 100644 --- a/Library/UefiShellUfmCommandLib/tbi/win.c +++ b/Library/UefiShellUfmCommandLib/tbi/win.c @@ -250,7 +250,7 @@ UINTN EFIAPI wvprintf(struct window *w, CONST CHAR16 *fmt, VA_LIST args) x = w->curx; y = w->cury; - walker_size = w->width * sizeof(CHAR16); + walker_size = (w->width + 1) * sizeof(CHAR16); fmt_walker = AllocateZeroPool(walker_size); if(!fmt_walker) return 0; |