From: hackbard Date: Mon, 17 Sep 2007 16:29:59 +0000 (+0200) Subject: dec n counter X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5528a813600916042130b81214cd72dcf289ed5;p=my-code%2Farm.git dec n counter --- diff --git a/betty/functions.c b/betty/functions.c index 732e76f..79612b3 100644 --- a/betty/functions.c +++ b/betty/functions.c @@ -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;