diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/string/strxfrm.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/libc/string/strxfrm.c b/lib/libc/string/strxfrm.c index cce6c0f..a4c8019 100644 --- a/lib/libc/string/strxfrm.c +++ b/lib/libc/string/strxfrm.c @@ -45,17 +45,8 @@ strxfrm(char * __restrict dest, const char * __restrict src, size_t len) return 0; } - if (__collate_load_error) { - slen = strlen(src); - if (len > 0) { - if (slen < len) - strcpy(dest, src); - else { - strlcpy(dest, src, len); - } - } - return slen; - } + if (__collate_load_error) + return strlcpy(dest, src, len); slen = 0; prim = sec = 0; |