When you have a C library that populates a string it is good practice to use `setLen` on the string afterwards. Most of these APIs returns the amount of bytes actually written (in this case by the `length` parameter to `glGetActiveUniform` as long as it is not `nil` as in your case. This reports the length without the null terminator, so it should strip this for you automatically.
- How to preallocate cstring for FFI call that fills it up scippie
- How to preallocate cstring for FFI call that fills it up ElegantBeef
- How to preallocate cstring for FFI call that fills it... sls1005
- How to preallocate cstring for FFI call that fill... scippie
- How to preallocate cstring for FFI call that ... scippie
- How to preallocate cstring for FFI call ... ElegantBeef
- How to preallocate cstring for FFI c... scippie
- How to preallocate cstring for F... scippie
- How to preallocate cstring for F... PMunch
- How to preallocate cstring for F... ElegantBeef