projects/aports·blob master · refs

24 lines · 783 B

1From ee1f4c0fce40cf6436b63450a36bbe6b5b582844 Mon Sep 17 00:00:00 2001
2From: Michael Forney <[email protected]>
3Date: Fri, 10 Apr 2026 15:41:50 -0700
4Subject: [PATCH] tests/libc: Fix type of pointer passed to wcsrtombs
5
6This parameter is `const wchar_t **src`. Without the qualifier on
7wc, we pass `wchar_t **`, which is not compatible.
8---
9 tests/libc/execute/0043-wcsrtombs.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/tests/libc/execute/0043-wcsrtombs.c b/tests/libc/execute/0043-wcsrtombs.c
13index 3de058c6..e691acac 100644
14--- a/tests/libc/execute/0043-wcsrtombs.c
15+++ b/tests/libc/execute/0043-wcsrtombs.c
16@@ -54,7 +54,7 @@ static void
17 tests_wcsrtombs(void)
18 {
19 size_t r;
20- wchar_t *wc;
21+ const wchar_t *wc;
22 mbstate_t st;
23 struct wcstests *tp;
24