From f798ba97171b7ecac3ecc5b8e6a0e4eb1301a391 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 30 Jun 2013 02:46:44 +0200 Subject: ubi_tools: add forgotten argv++ Signed-off-by: Denys Vlasenko --- miscutils/ubi_tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c index 79fb204..3305987 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); -- cgit v1.1