diff options
-rw-r--r-- | miscutils/nandwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c index a20f7f384..d0e4397fb 100644 --- a/miscutils/nandwrite.c +++ b/miscutils/nandwrite.c | |||
@@ -71,7 +71,7 @@ int nandwrite_main(int argc UNUSED_PARAM, char **argv) | |||
71 | fd = xopen(argv[0], O_RDWR); | 71 | fd = xopen(argv[0], O_RDWR); |
72 | xioctl(fd, MEMGETINFO, &meminfo); | 72 | xioctl(fd, MEMGETINFO, &meminfo); |
73 | 73 | ||
74 | mtdoffset = xatou(opt_s); | 74 | mtdoffset = bb_strtou(opt_s, NULL, 0); |
75 | 75 | ||
76 | /* Pull it into a CPU register (hopefully) - smaller code that way */ | 76 | /* Pull it into a CPU register (hopefully) - smaller code that way */ |
77 | meminfo_writesize = meminfo.writesize; | 77 | meminfo_writesize = meminfo.writesize; |