From 5a5e2ba6e1f9babb048a620168e1c75d838e4dda Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 1 Sep 2015 03:02:41 +0200 Subject: wcswcs is deprecated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/wchar/wcscpy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wchar/wcscpy.c') diff --git a/src/wchar/wcscpy.c b/src/wchar/wcscpy.c index cc60edc..7d75a98 100644 --- a/src/wchar/wcscpy.c +++ b/src/wchar/wcscpy.c @@ -94,7 +94,7 @@ wchar_t* wcsccpy(wchar_t* restrict whither, const wchar_t* restrict whence, wcha */ wchar_t* wcswcscpy(wchar_t* restrict whither, const wchar_t* restrict whence, const wchar_t* restrict str) { - const wchar_t* stop = str == NULL ? NULL : wcswcs(whence, str); + const wchar_t* stop = str == NULL ? NULL : wcsstr(whence, str); size_t n = stop == NULL ? wcslen(whence) : (size_t)(stop - whence); wchar_t* r = stop == NULL ? NULL ? whither + n; wmemcpy(whither, whence, n); @@ -213,7 +213,7 @@ wchar_t* wcscncpy(wchar_t* restrict whither, const wchar_t* restrict whence, wch wchar_t* wcswcsncpy(wchar_t* restrict whither, const wchar_t* restrict whence, const wchar_t* restrict str, size_t maxlen) { - const char* stop = wcsnwcs(whence, str, maxlen); + const char* stop = wcsnstr(whence, str, maxlen); size_t n = stop == NULL ? wcsnlen(whence, maxlen) : (size_t)(stop - whence); char* r = stop == NULL ? NULL : (whither + n); wmemcpy(whither, whence, n); -- cgit v1.2.3-70-g09d2