dec n counter
[my-code/arm.git] / betty / functions.c
index 732e76f..79612b3 100644 (file)
@@ -62,7 +62,7 @@ int mset(u8 *d,u8 v,int n) {
 
 int mcpy(u8 *d,u8 *s,int n) {
 
-       while(n)
+       while(n--)
                *d++=*s++;
 
        return n;