diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-15 19:58:26 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-15 19:58:26 +0000 |
commit | aed7ad54eb30fc388b95f98ad4980e8133975656 (patch) | |
tree | ecaf7a30e21713038088f281ca9c45068da8e8e3 | |
parent | 76809c3a05c20d69c65b7dc126e14f23d8907529 (diff) |
Wow. I'm all full of stupid mistakes today. Fix strxfrm
-Erik
-rw-r--r-- | libc/string/string.c | 5 |
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 |