Author: spouliot
Date: 2005-03-13 21:30:12 -0500 (Sun, 13 Mar 2005)
New Revision: 41778

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

        * util.c: Fix buffer length in mono_set_rootdir.


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

Modified: branches/mono-1-0/mono/mono/os/win32/util.c
===================================================================
--- branches/mono-1-0/mono/mono/os/win32/util.c 2005-03-14 02:18:56 UTC (rev 
41777)
+++ branches/mono-1-0/mono/mono/os/win32/util.c 2005-03-14 02:30:12 UTC (rev 
41778)
@@ -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