From b84e6862a7aa70a9c6fbc54c8afdf98ffc7c2df9 Mon Sep 17 00:00:00 2001
From: Joerg Wunsch <j@uriah.heep.sax.de>
Date: Sat, 29 Jan 2022 23:32:39 +0100
Subject: [PATCH] Assign proper type to msg[] in errstr()

Obviously, the array ought to be of type char.

Closes Issue #856
---
 src/usbasp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/usbasp.c b/src/usbasp.c
index f02dd7c9..250c8a22 100644
--- a/src/usbasp.c
+++ b/src/usbasp.c
@@ -68,7 +68,7 @@ static libusb_context *ctx = NULL;
 
 static const char *errstr(int result)
 {
-	static msg[30];
+	static char msg[30];
 	int n = 0;
 
 	switch (result) {