summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/string/string.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/string/string.c b/libc/string/string.c
index d5f3a3e59..366872a9d 100644
--- a/libc/string/string.c
+++ b/libc/string/string.c
@@ -121,9 +121,10 @@ char *strncpy(char *dst, const char *src, size_t len)
#endif
#ifdef L_strxfrm
-char *strncpy(char *dst, const char *src, size_t len)
+size_t strxfrm(char *dst, const char *src, size_t len)
{
- return( strncpy( dst, src, len));
+ strncpy( dst, src, len);
+ return( len);
}
#endif