- added patch to corrected argument of image_open in handle_flash_write_image_command
authormifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 17 Dec 2007 20:14:12 +0000 (20:14 +0000)
committermifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 17 Dec 2007 20:14:12 +0000 (20:14 +0000)
(thanks to oyvind Harboe for the patch)

git-svn-id: svn://svn.berlios.de/openocd/trunk@237 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/flash.c

index 2271f60..4b18bc3 100644 (file)
@@ -564,7 +564,7 @@ int handle_flash_write_image_command(struct command_context_s *cmd_ctx, char *cm
        
        image.start_address_set = 0;
 \r
-       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);