openocd/src/jtag
Krzysztof Hockuba 84a2302af7 Fix jtag_usb_location_equal for path members > 9
In case an USB location path contains path members
larger than 9. The string_length variable is regardless
decremented by 2 with assumption that the member is
one digit length. For exmaple 1-12.2 will fail.
This patch uses strlen to calculate
digits in a path member.

Change-Id: I9c26a04d0c6af13fec65157f222599497294e2b2
Signed-off-by: Krzysztof Hockuba <krzysztof@hockuba.eu>
Reviewed-on: http://openocd.zylin.com/6048
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2021-02-13 13:08:12 +00:00
..
aice jtag: declare local symbols as static 2020-11-04 17:39:22 +00:00
drivers Fix jtag_usb_location_equal for path members > 9 2021-02-13 13:08:12 +00:00
hla hla: API: specify that read_reg/write_reg use regsel as parameter 2020-11-15 21:07:14 +00:00
minidriver Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
minidummy coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
zy1000 coding style: add arguments to function prototypes 2020-07-08 22:08:19 +01:00
Makefile.am swim: abstract the transport in stm8 target 2020-05-24 21:29:42 +01:00
adapter.c jtag: adapter: rework adapter related commands 2020-01-29 05:33:39 +00:00
commands.c Fix debug prints when loading to flash 2020-09-05 16:48:08 +01:00
commands.h jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
core.c build: fix build with --enable-minidriver-dummy 2020-11-07 20:53:39 +00:00
driver.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
interface.c coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
interface.h jtag: fix minor typos 2020-07-26 20:14:37 +01:00
interfaces.c Add CMSIS-DAP v2 support 2020-11-15 21:36:56 +00:00
interfaces.h jtag: remove unused function adapter_driver_modules_load() 2020-05-02 15:41:21 +01:00
jtag.h jtag: fix minor typos 2020-07-26 20:14:37 +01:00
minidriver.h jtag: fix minor typos 2020-07-26 20:14:37 +01:00
startup.tcl hla_transport: split command registration per transport 2020-09-05 17:10:38 +01:00
swd.h swd: get rid of jtag queue to assert/deassert srst 2020-01-14 11:15:12 +00:00
swim.c swim: add new transport 2020-05-24 21:32:05 +01:00
swim.h swim: fix adapter speed handling 2020-05-24 21:31:21 +01:00
tcl.c jtag/tcl: fix memory leak in error return 2020-11-04 17:35:25 +00:00
tcl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00