malgo
malgo copied to clipboard
DeviceInfo.Name function returns a string with null bytes in it
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?