From aed7ad54eb30fc388b95f98ad4980e8133975656 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 15 Mar 2001 19:58:26 +0000 Subject: Wow. I'm all full of stupid mistakes today. Fix strxfrm -Erik --- libc/string/string.c | 5 +++-- 1 file 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 -- cgit v1.2.3