Explorar o código

Correct build if locales are enabled s/wcslcpy/wcsxfrm/, found by Paul Brook. Thanks

Peter S. Mazinger %!s(int64=18) %!d(string=hai) anos
pai
achega
cc9da0a85c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libc/string/wstring.c

+ 1 - 1
libc/string/wstring.c

@@ -3077,7 +3077,7 @@ size_t __XL(wcsxfrm)(wchar_t *__restrict ws1, const wchar_t *__restrict ws2,
 	int pass;
 
 	if (!CUR_COLLATE->num_weights) { /* C locale */
-		return wcslcpy(ws1, ws2, n);
+		return wcsxfrm(ws1, ws2, n);
 	}
 
 #ifdef __UCLIBC_MJN3_ONLY__