Author: atsushi
Date: 2006-01-18 04:09:41 -0500 (Wed, 18 Jan 2006)
New Revision: 55712

Modified:
   trunk/mcs/class/corlib/System.IO/ChangeLog
   trunk/mcs/class/corlib/System.IO/Path.cs
Log:
2006-01-18  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * Path.cs : (GetRandomFileName) use random buffer ;-) It somehow
          caused infinite loop on Windows.



Modified: trunk/mcs/class/corlib/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.IO/ChangeLog  2006-01-18 08:57:28 UTC (rev 
55711)
+++ trunk/mcs/class/corlib/System.IO/ChangeLog  2006-01-18 09:09:41 UTC (rev 
55712)
@@ -1,5 +1,10 @@
 2006-01-18  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
+       * Path.cs : (GetRandomFileName) use random buffer ;-) It somehow
+         caused infinite loop on Windows.
+
+2006-01-18  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
        * DirectoryInfo.cs : on Windows top directory is something like c:\.
 
 2006-01-17  Joshua Tauberer  <[EMAIL PROTECTED]>

Modified: trunk/mcs/class/corlib/System.IO/Path.cs
===================================================================
--- trunk/mcs/class/corlib/System.IO/Path.cs    2006-01-18 08:57:28 UTC (rev 
55711)
+++ trunk/mcs/class/corlib/System.IO/Path.cs    2006-01-18 09:09:41 UTC (rev 
55712)
@@ -445,7 +445,7 @@
                                int i = 0;
                                rng.GetNonZeroBytes (buffer);
                                while ((i < buffer.Length) && (sb.Length < 12)) 
{
-                                       char c = (char)i;
+                                       char c = (char) buffer [i];
                                        if (Array.IndexOf (invalid, c) == -1)
                                                sb.Append (c);
                                        i++;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to