X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fflash.c;h=4b18bc35e8ef80e11ea54e8bb563aeffe1308147;hp=2271f603cc74bf92eaf81d6ffca8886822898e79;hb=835e0436e8e982ab218b8ad6a68aee2f9507252d;hpb=f328fb8a6ce37c2af441d08d41d683d70454334a diff --git a/src/flash/flash.c b/src/flash/flash.c index 2271f603cc..4b18bc35e8 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -564,7 +564,7 @@ int handle_flash_write_image_command(struct command_context_s *cmd_ctx, char *cm image.start_address_set = 0; - retval = image_open(&image, args[0], (argc == 4) ? args[2] : NULL); + retval = image_open(&image, args[0], (argc == 3) ? args[2] : NULL); if (retval != ERROR_OK) { command_print(cmd_ctx, "image_open error: %s", image.error_str);