It's late, I'm tired.

This commit is contained in:
Thilo Schulz 2011-02-08 21:38:49 +00:00
parent c257dc2cfa
commit 8a3f2ff805

View file

@ -280,12 +280,12 @@ void *memmove(void *dest, const void *src, size_t count)
{ {
if(dest > src) if(dest > src)
{ {
i = count - 1; i = count;
do do
{ {
((char *) dest)[i] = ((char *) src)[i];
i--; i--;
((char *) dest)[i] = ((char *) src)[i];
} while(i > 0); } while(i > 0);
} }
else else