gen2brain / malgo

Mini audio library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DeviceInfo.Name function returns a string with null bytes in it

Keithcat1 opened this issue · comments

Go strings shouldn't normally have null bytes, and this breaks stuff expecting them not to. Normally you convert a C string to a Go string with the C.GoString function, it takes a pointer to a C string and returns a Go string.

@Keithcat1 can you send PR?