On Sat, Mar 27, 2021 at 10:45 AM Florian Weimer wrote: > > * H. J. Lu via Libc-alpha: > > > Use wmemset to initialize wchar_t string. > > --- > > string/test-strnlen.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/string/test-strnlen.c b/string/test-strnlen.c > > index a49d93afa2..6163079d12 100644 > > --- a/string/test-strnlen.c > > +++ b/string/test-strnlen.c > > @@ -27,6 +27,7 @@ > > > > #ifndef WIDE > > # define STRNLEN strnlen > > +# define MEMSET memset > > # define CHAR char > > # define BIG_CHAR CHAR_MAX > > # define MIDDLE_CHAR 127 > > @@ -34,6 +35,7 @@ > > #else > > # include > > # define STRNLEN wcsnlen > > +# define MEMSET memset > > # define CHAR wchar_t > > # define BIG_CHAR WCHAR_MAX > > # define MIDDLE_CHAR 1121 > > Shouldn't the second one be wmemset? You are right. Here is the v2 patch. -- H.J.