Fix an off-by-one error in usbhid_send().
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1382 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
081b6fe229
commit
9db53455a9
|
@ -240,7 +240,7 @@ static int usbhid_send(union filedescriptor *fd, const unsigned char *bp, size_t
|
|||
int rv;
|
||||
int i = mlen;
|
||||
const unsigned char * p = bp;
|
||||
unsigned char usbbuf[USBDEV_MAX_XFER_3];
|
||||
unsigned char usbbuf[USBDEV_MAX_XFER_3 + 1];
|
||||
|
||||
|
||||
int tx_size;
|
||||
|
|
Loading…
Reference in New Issue