projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf7a89c
)
Address PR feedback
author
stephentoub
<stoub@microsoft.com>
Wed, 7 Oct 2015 21:43:00 +0000
(17:43 -0400)
committer
stephentoub
<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
patch
|
blob
|
history
diff --git
a/src/mscorlib/src/System/StubHelpers.cs
b/src/mscorlib/src/System/StubHelpers.cs
index
e955203
..
699662b
100644
(file)
--- 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))
{