- fix jlink accessing incorrect buffer element

git-svn-id: svn://svn.berlios.de/openocd/trunk@701 b42882b7-edfa-0310-969c-e2dbd0fdcd60
__archive__
ntfreak 2008-06-04 09:46:19 +00:00
parent 61933601bb
commit 04eecaac4a
1 changed files with 1 additions and 1 deletions

View File

@ -821,7 +821,7 @@ int jlink_usb_message(jlink_jtag_t *jlink_jtag, int out_length, int in_length)
else
{
/* Check the result itself */
if (0 == usb_in_buffer[result])
if (0 == usb_in_buffer[result-1])
{
return result-1;
}