Closed haggaie closed 5 years ago
Stats are null terminated strings, but output may contain garbage between them. Current code that converts C strings to Go strings doesn't handle these cases, as it only trims zeros at the end of the string.
Fix based on: https://stackoverflow.com/a/12377539
Fixes: #4
Signed-off-by: Haggai Eran haggai.eran@gmail.com
Stats are null terminated strings, but output may contain garbage between them. Current code that converts C strings to Go strings doesn't handle these cases, as it only trims zeros at the end of the string.
Fix based on: https://stackoverflow.com/a/12377539
Fixes: #4
Signed-off-by: Haggai Eran haggai.eran@gmail.com