mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-10-08 19:53:07 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user