Correct argument numbering in trace command
[openocd.git] / src / jtag / hla / hla_interface.c
index ae33f54..9193133 100644 (file)
@@ -243,7 +243,7 @@ COMMAND_HANDLER(interface_handle_trace_command)
        }
 
        if (CMD_ARGC == 2) {
-               f = fopen(CMD_ARGV[0], "a");
+               f = fopen(CMD_ARGV[1], "a");
                if (!f)
                        return ERROR_COMMAND_SYNTAX_ERROR;
        }