From da93de9ddf731bd158a9d28dc09ac2e3911ec74f Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Sat, 14 Apr 2012 03:49:49 +0000 Subject: [PATCH] fixed memmove issue, report by luoyuncong. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2043 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/kservice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kservice.c b/src/kservice.c index 694cc735f..da4d7980b 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -279,7 +279,7 @@ void *rt_memmove(void *dest, const void *src, rt_ubase_t n) s += n; while (n--) - *tmp-- = *s--; + *(--tmp) = *(--s); } else {