malgo icon indicating copy to clipboard operation
malgo copied to clipboard

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

Open Keithcat1 opened this issue 4 years ago • 1 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 avatar Aug 05 '21 18:08 Keithcat1

@Keithcat1 can you send PR?

gen2brain avatar Aug 06 '21 11:08 gen2brain