diff --git a/symbols/pdb/Mono.Cecil.Pdb/ModuleMetadata.cs b/symbols/pdb/Mono.Cecil.Pdb/ModuleMetadata.cs index 0bc32dca5..5c8f30dbf 100644 --- a/symbols/pdb/Mono.Cecil.Pdb/ModuleMetadata.cs +++ b/symbols/pdb/Mono.Cecil.Pdb/ModuleMetadata.cs @@ -619,7 +619,7 @@ static void WriteNameBuffer(string name, char* buffer, uint bufferLength, uint* if (buffer != null && bufferLength > 0) { for (int i = 0; i < length; i++) buffer [i] = name [i]; - buffer [length + 1] = '\0'; + buffer [length] = '\0'; } }