From b312d1466db81e408940e1841ffb25e5bf0eafd1 Mon Sep 17 00:00:00 2001 From: Raphael Assenat Date: Tue, 3 Nov 2015 23:52:35 -0500 Subject: [PATCH] Allocate a buffer large enough for signature --- tool/gcn64lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/gcn64lib.c b/tool/gcn64lib.c index 16fe16a..dd83d7d 100644 --- a/tool/gcn64lib.c +++ b/tool/gcn64lib.c @@ -111,7 +111,7 @@ const char *gcn64lib_controllerName(int type) int gcn64lib_getSignature(gcn64_hdl_t hdl, char *dst, int dstmax) { - unsigned char cmd[32]; + unsigned char cmd[40]; int n; if (dstmax <= 0)