summaryrefslogtreecommitdiff
path: root/src/lib/memmove.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/memmove.c')
-rw-r--r--src/lib/memmove.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/memmove.c b/src/lib/memmove.c
index 241917c400..6a43ed4528 100644
--- a/src/lib/memmove.c
+++ b/src/lib/memmove.c
@@ -5,15 +5,13 @@ void *memmove(void *vdest, const void *vsrc, size_t count)
char *dest = vdest;
if (dest <= src) {
- while (count--) {
+ while (count--)
*dest++ = *src++;
- }
} else {
src += count - 1;
dest += count - 1;
- while(count--) {
+ while(count--)
*dest-- = *src--;
- }
}
return vdest;
}