From 7e9246c069778f419910c100d34936b94199ef1f Mon Sep 17 00:00:00 2001 From: JupiterRider <60042618+JupiterRider@users.noreply.github.com> Date: Tue, 17 Jun 2025 17:47:09 +0200 Subject: [PATCH] raygui/cstring.go: "fix" possible misuse of unsafe.Pointer --- raygui/cstring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raygui/cstring.go b/raygui/cstring.go index c321ae2..023bfd4 100644 --- a/raygui/cstring.go +++ b/raygui/cstring.go @@ -70,7 +70,7 @@ func (arr *CStringArray) ToSlice() []string { defer C.free(unsafe.Pointer(cs)) p := uintptr(arr.Pointer) for { - cs = (**C.char)(unsafe.Pointer(p)) + cs = *(***C.char)(unsafe.Pointer(&p)) if *cs == nil { // skip NULL - the last element break }