From 8a3f2ff8054fd39dad376ff788401b80cda2d05d Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Tue, 8 Feb 2011 21:38:49 +0000 Subject: [PATCH] It's late, I'm tired. --- code/game/bg_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/bg_lib.c b/code/game/bg_lib.c index f56382f6..296459a8 100644 --- a/code/game/bg_lib.c +++ b/code/game/bg_lib.c @@ -280,12 +280,12 @@ void *memmove(void *dest, const void *src, size_t count) { if(dest > src) { - i = count - 1; + i = count; do { - ((char *) dest)[i] = ((char *) src)[i]; i--; + ((char *) dest)[i] = ((char *) src)[i]; } while(i > 0); } else