diff options
author | Holger Lubitz | 2007-07-29 17:35:38 +0200 |
---|---|---|
committer | Holger Lubitz | 2007-07-29 17:35:38 +0200 |
commit | f397fc443c7e798bb5491ca9ab2acef54c5fc0f0 (patch) | |
tree | 13aeb0bf0df9a02161c9e761261e1adbb5b4e3f3 /src/core/string.c | |
parent | Inhibit a spurious warning on GCC 4.0.1 (diff) | |
download | ipxe-f397fc443c7e798bb5491ca9ab2acef54c5fc0f0.tar.gz ipxe-f397fc443c7e798bb5491ca9ab2acef54c5fc0f0.tar.xz ipxe-f397fc443c7e798bb5491ca9ab2acef54c5fc0f0.zip |
make bcopy use memmove
Diffstat (limited to 'src/core/string.c')
-rw-r--r-- | src/core/string.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/string.c b/src/core/string.c index 040a7785..12d05d53 100644 --- a/src/core/string.c +++ b/src/core/string.c @@ -424,12 +424,7 @@ void * memset(void * s,int c,size_t count) */ char * bcopy(const char * src, char * dest, int count) { - char *tmp = dest; - - while (count--) - *tmp++ = *src++; - - return dest; + return memmove(dest,src,count); } #endif |