Skip to content
Browse files

Change the way MutableString instances are created from the buffer.

  • Loading branch information...
1 parent de8a109 commit d1e4c5531ca2154f4a3545953c2aa13a629166b9 @nrk committed Jul 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Utilities.cs
View
2 src/Utilities.cs
@@ -10,7 +10,7 @@ public static class Utilities {
public static readonly RubyRegex ProcessInstructionParser = new RubyRegex(MutableString.CreateAscii(@"\A<\?(\S+)\s+(.+)"), RubyRegexOptions.Multiline);
public static MutableString CreateMutableStringFromBuffer(char[] buffer, int raw, int rawlen) {
- return MutableString.Create(new String(buffer, raw, rawlen), RubyEncoding.Binary);
+ return MutableString.CreateMutable(rawlen, RubyEncoding.Binary).Append(buffer, raw, rawlen);
}
public static RubyModule GetHpricotModule(RubyContext context) {

0 comments on commit d1e4c55

Please sign in to comment.
Something went wrong with that request. Please try again.