From e5528a813600916042130b81214cd72dcf289ed5 Mon Sep 17 00:00:00 2001 From: hackbard Date: Mon, 17 Sep 2007 18:29:59 +0200 Subject: [PATCH] dec n counter --- betty/functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2