X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=miscutils%2Fflashcp.c;h=858cee19451dcbb25c444eb94b0b799e55f3a6b5;hb=d72e804e6db1bd6eb2417961004b4fe33aba9384;hp=c10b96ee8e23c7a6a1995ee3c0175ac74626b3c9;hpb=798b94518e61ced3f7be7766727705df4859878c;p=oweals%2Fbusybox.git diff --git a/miscutils/flashcp.c b/miscutils/flashcp.c index c10b96ee8..858cee194 100644 --- a/miscutils/flashcp.c +++ b/miscutils/flashcp.c @@ -69,8 +69,7 @@ int flashcp_main(int argc UNUSED_PARAM, char **argv) RESERVE_CONFIG_UBUFFER(buf, BUFSIZE); RESERVE_CONFIG_UBUFFER(buf2, BUFSIZE); - opt_complementary = "=2"; /* exactly 2 non-option args: file, dev */ - /*opts =*/ getopt32(argv, "v"); + /*opts =*/ getopt32(argv, "^" "v" "\0" "=2"/*exactly 2 non-option args: file,dev*/); argv += optind; // filename = *argv++; // devicename = *argv;