From 5097a231961876bee7af6b000a5410c25091d721 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Sat, 6 Jun 2020 14:56:42 +0200 Subject: [PATCH] jlink: Fix wrong sized array. --- src/platforms/hosted/jlink_adiv5_swdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/hosted/jlink_adiv5_swdp.c b/src/platforms/hosted/jlink_adiv5_swdp.c index 5e7ba3b..b9deabb 100644 --- a/src/platforms/hosted/jlink_adiv5_swdp.c +++ b/src/platforms/hosted/jlink_adiv5_swdp.c @@ -92,7 +92,7 @@ static int line_reset(bmp_info_t *info) data[13] = 0xa5; data[18] = 0; - uint8_t res[18]; + uint8_t res[19]; send_recv(info->usb_link, cmd, 42, res, 19); send_recv(info->usb_link, NULL, 0, res, 1);