Author: spouliot
Date: 2005-03-13 21:18:56 -0500 (Sun, 13 Mar 2005)
New Revision: 41777

Added:
   trunk/mono/mono/os/win32/ChangeLog
Modified:
   trunk/mono/mono/os/win32/util.c
Log:
2005-03-13  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * util.c: Fix buffer length in mono_set_rootdir.


Added: trunk/mono/mono/os/win32/ChangeLog
===================================================================
--- trunk/mono/mono/os/win32/ChangeLog  2005-03-14 02:18:24 UTC (rev 41776)
+++ trunk/mono/mono/os/win32/ChangeLog  2005-03-14 02:18:56 UTC (rev 41777)
@@ -0,0 +1,3 @@
+2005-03-13  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * util.c: Fix buffer length in mono_set_rootdir.

Modified: trunk/mono/mono/os/win32/util.c
===================================================================
--- trunk/mono/mono/os/win32/util.c     2005-03-14 02:18:24 UTC (rev 41776)
+++ trunk/mono/mono/os/win32/util.c     2005-03-14 02:18:56 UTC (rev 41777)
@@ -42,7 +42,7 @@
        gunichar2 moddir [MAXPATHLEN];
        gchar *bindir, *installdir, *root, *utf8name;
 
-       GetModuleFileNameW (NULL, moddir, sizeof(moddir));
+       GetModuleFileNameW (NULL, moddir, MAXPATHLEN);
        utf8name = g_utf16_to_utf8 (moddir, -1, NULL, NULL, NULL);
        bindir = g_path_get_dirname (utf8name);
        installdir = g_path_get_dirname (bindir);

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

Reply via email to