diff --git a/compiler-rt/test/msan/__strxfrm_l.cpp b/compiler-rt/test/msan/__strxfrm_l.cpp --- a/compiler-rt/test/msan/__strxfrm_l.cpp +++ b/compiler-rt/test/msan/__strxfrm_l.cpp @@ -10,7 +10,7 @@ extern "C" decltype(strxfrm_l) __strxfrm_l; int main(void) { - char q[10]; + char q[100]; locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0); size_t n = __strxfrm_l(q, "qwerty", sizeof(q), loc); assert(n < sizeof(q)); diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/strxfrm.c b/compiler-rt/test/sanitizer_common/TestCases/Posix/strxfrm.c --- a/compiler-rt/test/sanitizer_common/TestCases/Posix/strxfrm.c +++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/strxfrm.c @@ -3,16 +3,16 @@ #include #include -#include +#include int main(int argc, char **argv) { char q[10]; size_t n = strxfrm(q, "abcdef", sizeof(q)); assert(n < sizeof(q)); - char q2[10]; + char q2[100]; locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0); - n = strxfrm_l(q2, L"qwerty", sizeof(q), loc); + n = strxfrm_l(q2, "qwerty", sizeof(q2), loc); assert(n < sizeof(q2)); freelocale(loc);