projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5ee509
)
Fix strcpy implementation and trie
author
Chris Lattner
<sabre@nondot.org>
Tue, 21 Oct 2003 17:53:16 +0000
(17:53 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 21 Oct 2003 17:53:16 +0000
(17:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9338
91177308
-0d34-0410-b5e6-
96231b3b80d8
runtime/GCCLibraries/libc/string.c
patch
|
blob
|
history
diff --git
a/runtime/GCCLibraries/libc/string.c
b/runtime/GCCLibraries/libc/string.c
index bc262a5f4ce0740d872d159d2ed6bfbdfb8fdbe9..0ed4ced64c49787493324fa0f0d8bba3b1564f9a 100644
(file)
--- a/
runtime/GCCLibraries/libc/string.c
+++ b/
runtime/GCCLibraries/libc/string.c
@@
-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) {