diff options
Diffstat (limited to 'nandwrite.c')
-rw-r--r-- | nandwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nandwrite.c b/nandwrite.c index 0b2a9ee..9343a02 100644 --- a/nandwrite.c +++ b/nandwrite.c @@ -531,7 +531,7 @@ int main(int argc, char * const argv[]) if (writeoob) { int tinycnt = 0; - while(tinycnt < readlen) { + while(tinycnt < meminfo.oobsize) { cnt = read(ifd, oobreadbuf + tinycnt, meminfo.oobsize - tinycnt); if (cnt == 0) { // EOF break; |