Browse Source

fixed memmove issue, report by luoyuncong.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2043 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong@gmail.com 13 years ago
parent
commit
da93de9ddf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/kservice.c

+ 1 - 1
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
 	{