http://git.etherboot.org
/
people
/
holger
/
gpxe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make bcopy use memcpy directly
[people/holger/gpxe.git]
/
src
/
core
/
string.c
diff --git
a/src/core/string.c
b/src/core/string.c
index
040a778
..
39d6e77
100644
(file)
--- 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 memcpy(dest,src,count);
}
#endif