* StringReader.cs:
(ReadLine): fixed the case when the string ends with a '\n'.
svn path=/trunk/mcs/; revision=11473
+2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * StringReader.cs:
+ (ReadLine): fixed the case when the string ends with a '\n'.
+
2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* MemoryStream.cs: create the buffer of the specified capacity.
// HOWEVER, the MS implementation returns the rest of the string if no \r and/or \n is found
// in the string
- if (nextChar == source.Length)
+ if (nextChar >= source.Length)
return null;
int nextCR = source.IndexOf( '\r', nextChar );