diff --git a/src/jtag/drivers/usbprog.c b/src/jtag/drivers/usbprog.c index 225a3c59d..7d10d0f40 100644 --- a/src/jtag/drivers/usbprog.c +++ b/src/jtag/drivers/usbprog.c @@ -317,7 +317,7 @@ static void usbprog_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int usbprog_jtag_tms_send(usbprog_jtag_handle); - void (*f)(struct usbprog_jtag *usbprog_jtag, char * buffer, int size); + void (*f)(struct usbprog_jtag *usbprog_jtag, char * buffer_local, int size); switch (type) { case SCAN_OUT: f = &usbprog_jtag_write_tdi; break; case SCAN_IN: f = &usbprog_jtag_read_tdo; break;