From a78227dc7320738ec930edbde1aaa0023a51ee4c Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Sun, 29 Aug 2010 10:36:49 +0300 Subject: nandwrite: allow hex values in the -s parameter Signed-off-by: Baruch Siach Signed-off-by: Denys Vlasenko --- miscutils/nandwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils/nandwrite.c') 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; -- cgit v1.2.3