OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76809c3
)
Wow. I'm all full of stupid mistakes today. Fix strxfrm
author
Eric Andersen
<andersen@codepoet.org>
Thu, 15 Mar 2001 19:58:26 +0000
(19:58 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Thu, 15 Mar 2001 19:58:26 +0000
(19:58 -0000)
-Erik
libc/string/string.c
patch
|
blob
|
history
diff --git
a/libc/string/string.c
b/libc/string/string.c
index
d5f3a3e
..
366872a
100644
(file)
--- 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