From: Gonzalo Paniagua Javier Date: Sun, 1 Dec 2002 07:57:32 +0000 (-0000) Subject: 2002-12-01 Gonzalo Paniagua Javier X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=6b9193663b04ff9d61192a093386a7bb8efed93b;p=mono.git 2002-12-01 Gonzalo Paniagua Javier * StringBuilder.cs: fixed constructor. Thanks to marcusU for reporting. svn path=/trunk/mcs/; revision=9307 --- diff --git a/mcs/class/corlib/System.Text/ChangeLog b/mcs/class/corlib/System.Text/ChangeLog index 1c9d332f6de..4538e8602dd 100755 --- a/mcs/class/corlib/System.Text/ChangeLog +++ b/mcs/class/corlib/System.Text/ChangeLog @@ -1,3 +1,6 @@ +2002-12-01 Gonzalo Paniagua Javier + + * StringBuilder.cs: fixed constructor. Thanks to marcusU for reporting. Tue Nov 19 13:03:27 CET 2002 Paolo Molaro diff --git a/mcs/class/corlib/System.Text/StringBuilder.cs b/mcs/class/corlib/System.Text/StringBuilder.cs index 050748506c6..598a3a82293 100644 --- a/mcs/class/corlib/System.Text/StringBuilder.cs +++ b/mcs/class/corlib/System.Text/StringBuilder.cs @@ -64,7 +64,7 @@ namespace System.Text { // if the length is not zero, then we have to copy some characters if (sLength > 0) { // Copy the correct number of characters into the internal array - value.CopyTo (0, sString, 0, sLength); + value.CopyTo (startIndex, sString, 0, sLength); } }