]> hackdaworld.org Git - my-code/arm.git/commitdiff
dec n counter
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Mon, 17 Sep 2007 16:29:59 +0000 (18:29 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Mon, 17 Sep 2007 16:29:59 +0000 (18:29 +0200)
betty/functions.c

index 732e76fe476c4aa4884797b75acb649e3c1f59c0..79612b389c611a93b9d0d664048b2ed98afcfca0 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;