summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2004-08-10 15:18:18 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2004-08-10 15:18:18 +0000
commita53036dba53fb4358186c5293341df5ede516026 (patch)
tree7bd7942fc1d8001beb8df3b55e1f7427c4dc1b93 /ldso
parent6f60320934749897340f9f6d056f6e57c79fc2f9 (diff)
Forgot _dl_memcpy in previous checkin.
Diffstat (limited to 'ldso')
-rw-r--r--ldso/include/dl-string.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/ldso/include/dl-string.h b/ldso/include/dl-string.h
index 0b313e73f..3e14971e6 100644
--- a/ldso/include/dl-string.h
+++ b/ldso/include/dl-string.h
@@ -135,12 +135,13 @@ static inline char *_dl_strstr(const char *s1, const char *s2)
static inline void * _dl_memcpy(void * dst, const void * src, size_t len)
{
- register char *a = dst;
- register const char *b = src;
-
- while (len--)
- *a++ = *b++;
+ register char *a = dst-1;
+ register const char *b = src-1;
+ while (len) {
+ *++a = *++b;
+ --len;
+ }
return dst;
}