aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nandtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nandtest.c b/nandtest.c
index 7613a52..e31e28a 100644
--- a/nandtest.c
+++ b/nandtest.c
@@ -259,7 +259,7 @@ int main(int argc, char **argv)
printf("\r%08x: reading... ", (unsigned)test_ofs);
fflush(stdout);
- len = pread(fd, rbuf, meminfo.erasesize, test_ofs);
+ len = pread(fd, kbuf, meminfo.erasesize, test_ofs);
if (len < meminfo.erasesize) {
printf("\n");
if (len)