aboutsummaryrefslogtreecommitdiff
path: root/src/jtag
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-06-04 09:46:19 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-06-04 09:46:19 +0000
commit04eecaac4aa6e8c39bf19bc46de5049f97c1bad5 (patch)
tree9e1ba8115ea36ba09ce77dfb180da39f92a61b1a /src/jtag
parent61933601bbcce64aa3c648ca6506dda39d2670f1 (diff)
- fix jlink accessing incorrect buffer element
git-svn-id: svn://svn.berlios.de/openocd/trunk@701 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag')
-rw-r--r--src/jtag/jlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c
index 943cfdc3..96e4efd3 100644
--- a/src/jtag/jlink.c
+++ b/src/jtag/jlink.c
@@ -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;
}