From 5aabc7e6aad28327d75671e52c50060e4543112c Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 25 Feb 2019 13:01:12 +0000 Subject: Make use of builtins whenever possible --- include/wchar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/wchar.h') diff --git a/include/wchar.h b/include/wchar.h index 3cb6f92..09ffa97 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -121,7 +121,7 @@ _FORTIFY_FN(wcrtomb) size_t wcrtomb(char *__s, wchar_t __w, mbstate_t *__st) return __r; if (__r > __b) __builtin_trap(); - memcpy(__s, __buf, __r); + __builtin_memcpy(__s, __buf, __r); return __r; } return __orig_wcrtomb(__s, __w, __st); -- cgit v1.3