From b3ee7ad6867d70755096083313f390ac7a4d117c Mon Sep 17 00:00:00 2001 From: joerg_wunsch Date: Mon, 22 Feb 2016 09:23:20 +0000 Subject: [PATCH] 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 --- usb_hidapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb_hidapi.c b/usb_hidapi.c index aa306b69..3c630139 100644 --- a/usb_hidapi.c +++ b/usb_hidapi.c @@ -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;