summaryrefslogtreecommitdiffhomepage
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-06-30 02:46:44 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2013-06-30 02:46:44 +0200
commitf798ba97171b7ecac3ecc5b8e6a0e4eb1301a391 (patch)
treef6e9f5e1e341dcc3820d824581d643e61d06f070 /miscutils
parent65bdf0b737955de55b4b38a08d51b410dfaf42eb (diff)
ubi_tools: add forgotten argv++
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/ubi_tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c
index 79fb2044d..33059873a 100644
--- a/miscutils/ubi_tools.c
+++ b/miscutils/ubi_tools.c
@@ -142,7 +142,7 @@ int ubi_tools_main(int argc UNUSED_PARAM, char **argv)
if (opts & OPTION_s)
size_bytes = xatoull(size_bytes_str);
argv += optind;
- ubi_ctrl = *argv;
+ ubi_ctrl = *argv++;
fd = xopen(ubi_ctrl, O_RDWR);
//xfstat(fd, &st, ubi_ctrl);