From d828af5feab1842cf8bcb533524f735f2f947767 Mon Sep 17 00:00:00 2001 From: stephentoub Date: Wed, 7 Oct 2015 17:43:00 -0400 Subject: [PATCH] Address PR feedback Remove addition of null terminator, which should already be added by ConvertToAnsi. --- src/mscorlib/src/System/StubHelpers.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mscorlib/src/System/StubHelpers.cs b/src/mscorlib/src/System/StubHelpers.cs index e955203..699662b 100644 --- a/src/mscorlib/src/System/StubHelpers.cs +++ b/src/mscorlib/src/System/StubHelpers.cs @@ -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)) { -- 2.7.4