Skip to content
Snippets Groups Projects
Commit 04eecaac authored by ntfreak's avatar ntfreak
Browse files

- fix jlink accessing incorrect buffer element

git-svn-id: svn://svn.berlios.de/openocd/trunk@701 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 61933601
Branches
No related tags found
No related merge requests found
...@@ -821,7 +821,7 @@ int jlink_usb_message(jlink_jtag_t *jlink_jtag, int out_length, int in_length) ...@@ -821,7 +821,7 @@ int jlink_usb_message(jlink_jtag_t *jlink_jtag, int out_length, int in_length)
else else
{ {
/* Check the result itself */ /* Check the result itself */
if (0 == usb_in_buffer[result]) if (0 == usb_in_buffer[result-1])
{ {
return result-1; return result-1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment