Skip to content

Commit cd626d8

Browse files
author
git apple-llvm automerger
committed
Merge commit 'c26cd0e5b87d' from apple/master into swift/master-next
2 parents 5d6c48e + c26cd0e commit cd626d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler-rt/test/msan/__strxfrm_l.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
extern "C" decltype(strxfrm_l) __strxfrm_l;
1111

1212
int main(void) {
13-
char q[10];
13+
char q[100];
1414
locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0);
1515
size_t n = __strxfrm_l(q, "qwerty", sizeof(q), loc);
1616
assert(n < sizeof(q));

compiler-rt/test/sanitizer_common/TestCases/Posix/strxfrm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33

44
#include <assert.h>
55
#include <locale.h>
6-
#include <wchar.h>
6+
#include <string.h>
77

88
int main(int argc, char **argv) {
99
char q[10];
1010
size_t n = strxfrm(q, "abcdef", sizeof(q));
1111
assert(n < sizeof(q));
1212

13-
char q2[10];
13+
char q2[100];
1414
locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0);
15-
n = strxfrm_l(q2, L"qwerty", sizeof(q), loc);
15+
n = strxfrm_l(q2, "qwerty", sizeof(q2), loc);
1616
assert(n < sizeof(q2));
1717

1818
freelocale(loc);

0 commit comments

Comments
 (0)