From 0c9dd55ec7b500bd42d4994d1938ebff0cebb20a Mon Sep 17 00:00:00 2001 From: Sergey Gridassov Date: Fri, 10 Dec 2010 17:48:09 +0300 Subject: [PATCH] Fixed erroneous file size correction --- ingenic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingenic.c b/ingenic.c index 368495c..02ab79c 100644 --- a/ingenic.c +++ b/ingenic.c @@ -649,7 +649,7 @@ int ingenic_program_nand(void *hndl, int cs, int start, int type, const char *fi if(tail) { tail = page_size - tail; - file_size += page_size - tail; + file_size += tail; } int pages = file_size / page_size;