From c1ae882c7c81fe3e542fd7fd2fcc8f3f322ed943 Mon Sep 17 00:00:00 2001 From: Brendan Porter Date: Fri, 17 Aug 2018 13:37:21 -0500 Subject: [PATCH] trying to fix gpio_slowdown --- matrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix.go b/matrix.go index 67468e6..368ed5f 100644 --- a/matrix.go +++ b/matrix.go @@ -159,7 +159,7 @@ const MatrixEmulatorENV = "MATRIX_EMULATOR" func stringsToC(s []string) **C.char { cArray := C.malloc(C.size_t(len(s)) * C.size_t(unsafe.Sizeof(uintptr(0)))) - a := (*[1<<30 - 1]*C.char)(cArray) + a := (*[2000]*C.char)(cArray) for idx, substring := range s { a[idx] = C.CString(substring)