mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Fix strcpy implementation and trie
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9338 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5ee509be2
commit
68172da055
@ -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