mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-30 06:40:53 +00:00
Fix strcpy implementation and trie
llvm-svn: 9338
This commit is contained in:
parent
4034694fef
commit
10beed4236
@ -23,8 +23,9 @@ char *strdup(const char *str) {
|
||||
}
|
||||
|
||||
char *strcpy(char *s1, const char *s2) {
|
||||
char *dest = s1;
|
||||
while ((*s1++ = *s2++));
|
||||
return s1;
|
||||
return dest;
|
||||
}
|
||||
|
||||
char *strcat(char *s1, const char *s2) {
|
||||
|
Loading…
Reference in New Issue
Block a user