summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-15 19:58:26 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-15 19:58:26 +0000
commitaed7ad54eb30fc388b95f98ad4980e8133975656 (patch)
treeecaf7a30e21713038088f281ca9c45068da8e8e3
parent76809c3a05c20d69c65b7dc126e14f23d8907529 (diff)
Wow. I'm all full of stupid mistakes today. Fix strxfrm
-Erik
-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