Re: [PATCH] test: unicode: fix a sizeof() vs ARRAY_SIZE() bug

2023-08-08 Thread Tom Rini
On Thu, Jul 27, 2023 at 10:12:58AM +0300, Dan Carpenter wrote: > 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 Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

[PATCH] test: unicode: fix a sizeof() vs ARRAY_SIZE() bug

2023-07-27 Thread Dan Carpenter
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 --- test/unicode_ut.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unicode_ut.c b/test/unicode_ut.c index

Re: [PATCH] test: unicode: fix a sizeof() vs ARRAY_SIZE() bug

2023-07-27 Thread Heinrich Schuchardt
On 7/27/23 09:12, Dan Carpenter wrote: The u16_strlcat() is in units of u16 not bytes. So the limit needs to be ARRAY_SIZE() instead of sizeof(). Reviewed-by: Heinrich Schuchardt Signed-off-by: Dan Carpenter --- test/unicode_ut.c | 6 +++--- 1 file changed, 3 insertions(+), 3