summaryrefslogtreecommitdiff
path: root/lib/console.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2020-12-10 11:24:09 -0500
committerJavier Martinez Canillas <javier@dowhile0.org>2021-02-16 09:12:48 +0100
commit9c64b6278c160e8db8c3d6b3f66803f3d5906074 (patch)
tree39bf8b040eed1f404de2261ffdc1210fafd6713f /lib/console.c
parent8537e0555c828a27fda7b4e1f9191ab94cc827e1 (diff)
downloadefi-boot-shim-9c64b6278c160e8db8c3d6b3f66803f3d5906074.tar.gz
efi-boot-shim-9c64b6278c160e8db8c3d6b3f66803f3d5906074.zip
Make sure MIN() and MAX() are always defined.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/console.c')
-rw-r--r--lib/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/console.c b/lib/console.c
index ecd5c0e0..00a7baad 100644
--- a/lib/console.c
+++ b/lib/console.c
@@ -213,7 +213,7 @@ console_print_box_at(CHAR16 *str_arr[], int highlight,
if (col < 0)
col = 0;
- CopyMem(Line + col + 1, s, min(len, size_cols - 2)*2);
+ CopyMem(Line + col + 1, s, MIN(len, size_cols - 2)*2);
}
if (line >= 0 && line == highlight)
co->SetAttribute(co, EFI_LIGHTGRAY |