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 732e76f..79612b3 100644 (file)
@@ -62,7 +62,7 @@ int mset(u8 *d,u8 v,int n) {
 
 int mcpy(u8 *d,u8 *s,int n) {
 
 
 int mcpy(u8 *d,u8 *s,int n) {
 
-       while(n)
+       while(n--)
                *d++=*s++;
 
        return n;
                *d++=*s++;
 
        return n;