ubi_tools: add forgotten argv++

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2013-06-30 02:46:44 +02:00
parent 65bdf0b737
commit f798ba9717

View File

@ -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);