summaryrefslogtreecommitdiff
path: root/test/unicode_ut.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/unicode_ut.c')
-rw-r--r--test/unicode_ut.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unicode_ut.c b/test/unicode_ut.c
index 33fc8b0ee1..6130ef0b54 100644
--- a/test/unicode_ut.c
+++ b/test/unicode_ut.c
@@ -603,7 +603,7 @@ static int unicode_test_efi_create_indexed_name(struct unit_test_state *uts)
u16 *pos;
memset(buf, 0xeb, sizeof(buf));
- pos = efi_create_indexed_name(buf, "Capsule", 0x0af9);
+ pos = efi_create_indexed_name(buf, sizeof(buf), "Capsule", 0x0af9);
ut_asserteq_mem(expected, buf, sizeof(expected));
ut_asserteq(pos - buf, u16_strnlen(buf, SIZE_MAX));