Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2010-08-29 11:36:49 +0400
committerDenys Vlasenko <vda.linux@googlemail.com>2010-08-29 15:15:57 +0400
commita78227dc7320738ec930edbde1aaa0023a51ee4c (patch)
treeea620f2849fadb701980251e53cb957697228dce /miscutils/nandwrite.c
parentcc131534e2bc96a5005dc98a9559de009a68068a (diff)
nandwrite: allow hex values in the -s parameter
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/nandwrite.c')
-rw-r--r--miscutils/nandwrite.c2
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)
fd = xopen(argv[0], O_RDWR);
xioctl(fd, MEMGETINFO, &meminfo);
- mtdoffset = xatou(opt_s);
+ mtdoffset = bb_strtou(opt_s, NULL, 0);
/* Pull it into a CPU register (hopefully) - smaller code that way */
meminfo_writesize = meminfo.writesize;