]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: unicode: fix a sizeof() vs ARRAY_SIZE() bug
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 27 Jul 2023 07:12:58 +0000 (10:12 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 8 Aug 2023 21:41:52 +0000 (17:41 -0400)
commitbe5f9a77f8bc83a3f93d26a50acc047d2bbee908
tree032c0ee471ae53f081bd2976d6fd524e2e2ee523
parentbb34bc0c96168857d6b5127d3487223b0ea8cfa5
test: unicode: fix a sizeof() vs ARRAY_SIZE() bug

The u16_strlcat() is in units of u16 not bytes.  So the limit needs to
be ARRAY_SIZE() instead of sizeof().

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
test/unicode_ut.c