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:
Joerg Wunsch 2016-02-22 09:23:20 +00:00
parent 081b6fe229
commit 9db53455a9
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ static int usbhid_send(union filedescriptor *fd, const unsigned char *bp, size_t
int rv; int rv;
int i = mlen; int i = mlen;
const unsigned char * p = bp; const unsigned char * p = bp;
unsigned char usbbuf[USBDEV_MAX_XFER_3]; unsigned char usbbuf[USBDEV_MAX_XFER_3 + 1];
int tx_size; int tx_size;