Browse Source

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

Peter S. Mazinger 18 years ago
parent
commit
cc9da0a85c
1 changed files with 1 additions and 1 deletions
  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__