DeviceInfo.Name function returns a string with null bytes in it
Keithcat1 opened this issue · comments
Keithcat1 commented
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.
Milan Nikolic commented
@Keithcat1 can you send PR?