[llvm-commits] CVS: llvm/runtime/GCCLibraries/libc/string.c
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 21 12:54:01 PDT 2003
Changes in directory llvm/runtime/GCCLibraries/libc:
string.c updated: 1.5 -> 1.6
---
Log message:
Fix strcpy implementation and trie
---
Diffs of the changes: (+2 -1)
Index: llvm/runtime/GCCLibraries/libc/string.c
diff -u llvm/runtime/GCCLibraries/libc/string.c:1.5 llvm/runtime/GCCLibraries/libc/string.c:1.6
--- llvm/runtime/GCCLibraries/libc/string.c:1.5 Thu Aug 28 09:35:12 2003
+++ llvm/runtime/GCCLibraries/libc/string.c Tue Oct 21 12:53:16 2003
@@ -23,8 +23,9 @@
}
char *strcpy(char *s1, const char *s2) {
+ char *dest = s1;
while ((*s1++ = *s2++));
- return s1;
+ return dest;
}
char *strcat(char *s1, const char *s2) {
More information about the llvm-commits
mailing list