diff options
author | Joursoir <chat@joursoir.net> | 2021-12-01 19:42:03 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-12-01 19:42:03 +0300 |
commit | 1742773eee5ead8b2a96fc1151c584d24a49d161 (patch) | |
tree | 3f872c1c8b28575a5b34bc2e5716c249089cb250 | |
parent | 88e965ea7fccd4c59eef23ee739b395da6281dd8 (diff) | |
download | ufm-1742773eee5ead8b2a96fc1151c584d24a49d161.tar.gz ufm-1742773eee5ead8b2a96fc1151c584d24a49d161.tar.bz2 ufm-1742773eee5ead8b2a96fc1151c584d24a49d161.zip |
tbi/win: fix incorrect allocation memory
-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; |