The MyTestStruct example in the test code had a minor bug in it in that it didn't handle null-termination. This could possibly cause a crash if string of exactly 100 characters were used, or if you set the Name field to a shorter string after setting to a longer string.
Realizing that this struct only exists for test code, I don't think it's that big of a deal. But I wanted to get this in anyway because that sample code is something other people may use as a basis of their own implementation, so might as well have the bug fixed.
The MyTestStruct example in the test code had a minor bug in it in that it didn't handle null-termination. This could possibly cause a crash if string of exactly 100 characters were used, or if you set the Name field to a shorter string after setting to a longer string.
Realizing that this struct only exists for test code, I don't think it's that big of a deal. But I wanted to get this in anyway because that sample code is something other people may use as a basis of their own implementation, so might as well have the bug fixed.