Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcs/class/Mono.Profiler.Log/Mono.Profiler.Aot/ProfileWriter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Aot/ProfileWriter.cs b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Aot/ProfileWriter.cs
index e7be91e19d6..4c202900896 100644
--- a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Aot/ProfileWriter.cs
+++ b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Aot/ProfileWriter.cs
@@ -25,8 +25,8 @@ namespace Mono.Profiler.Aot {
void WriteString (string str)
{
- WriteInt32 (str.Length);
var buf = Encoding.UTF8.GetBytes (str);
+ WriteInt32 (buf.Length);
stream.Write (buf, 0, buf.Length);
}