Address PR feedback
authorstephentoub <stoub@microsoft.com>
Wed, 7 Oct 2015 21:43:00 +0000 (17:43 -0400)
committerstephentoub <stoub@microsoft.com>
Wed, 7 Oct 2015 21:43:00 +0000 (17:43 -0400)
Remove addition of null terminator, which should already be added by ConvertToAnsi.

src/mscorlib/src/System/StubHelpers.cs

index e955203..699662b 100644 (file)
@@ -1061,9 +1061,6 @@ namespace  System.StubHelpers {
                         IsBestFit(dwFlags),
                         IsThrowOn(dwFlags));
                     Contract.Assert(length < allocSize, "Expected a length less than the allocated size");
-
-                    // null-terminate the native string
-                    *(ptr + length) = 0;
                 }
                 if (IsOut(dwFlags))
                 {