From 0c13c669cf2d73aaa65627689913c97dcf1651e5 Mon Sep 17 00:00:00 2001 From: "henryk@ploetzli.ch" Date: Tue, 1 Sep 2009 04:59:52 +0000 Subject: [PATCH] Fix argument check for the case of both and not fast --- linux/flasher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/flasher.c b/linux/flasher.c index beea754e..a8943513 100644 --- a/linux/flasher.c +++ b/linux/flasher.c @@ -120,7 +120,7 @@ int main(int argc, char **argv) { BOOL fastflash = 0, flashboth = 0; UsbCommand c; - if (argc != 3 && ! ((argc == 4 && *argv[3] == 'f') || (argc == 5 && *argv[4] == 'f'))) { + if (argc != 3 && ! ((argc == 4 && (*argv[3] == 'f' || strcmp(argv[1], "both") == 0) ) || (argc == 5 && *argv[4] == 'f'))) { fprintf(stderr,"Usage: %s {bootrom|os|fpga} image.s19 [f]ast\n", argv[0]); fprintf(stderr," %s {both} osimage.s19 fpgaimage.s19 [f]ast\n", argv[0]); exit(EXIT_FAILURE); -- 2.39.5