go-opencl icon indicating copy to clipboard operation
go-opencl copied to clipboard

OpenCL strings are NUL-terminated but Go strings aren't

Open willglynn opened this issue 10 years ago • 0 comments

OpenCL string-returning functions include NUL terminators, included in the length of the returned string. Go strings shouldn't contain these terminators, but at present, they do. This commit fixes that and adds tests to that effect.

willglynn avatar Dec 18 '14 04:12 willglynn