]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib/charset: fix u16_strlcat() return value
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Fri, 14 Jul 2023 11:24:51 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 8 Aug 2023 21:05:43 +0000 (17:05 -0400)
commit7c00b80d48cbb28e5f6dfc232c344526e28f7176
tree25c497c3509934e0c691ac0384f82deee75dc87e
parent615828721abfe8c73b5103d4436402ecbf9b9897
lib/charset: fix u16_strlcat() return value

strlcat returns min(strlen(dest), count)+strlen(src). Make u16_strlcat's
behaviour the same for consistency.

Fixes: eca08ce94ceb ("lib/charset: add u16_strlcat() function")
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
lib/charset.c
test/unicode_ut.c