diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2005-03-14 05:30:12 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2005-03-14 05:30:12 +0300 |
commit | 47dbd8a6f8da36031002dcdca8457de3b08bb112 (patch) | |
tree | 5f65567e38a651ae572af106db8b4aa4c6c3aa7f | |
parent | 99ddff749224aac8f8fa4f338afcf1eb43361c60 (diff) |
2005-03-13 Sebastien Pouliot <sebastien@ximian.com>
* util.c: Fix buffer length in mono_set_rootdir.
svn path=/branches/mono-1-0/mono/; revision=41778
-rw-r--r-- | mono/os/win32/ChangeLog | 3 | ||||
-rw-r--r-- | mono/os/win32/util.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/mono/os/win32/ChangeLog b/mono/os/win32/ChangeLog new file mode 100644 index 00000000000..b1fff605fbd --- /dev/null +++ b/mono/os/win32/ChangeLog @@ -0,0 +1,3 @@ +2005-03-13 Sebastien Pouliot <sebastien@ximian.com> + + * util.c: Fix buffer length in mono_set_rootdir. diff --git a/mono/os/win32/util.c b/mono/os/win32/util.c index 8c95f0db6d3..a059ca43f48 100644 --- a/mono/os/win32/util.c +++ b/mono/os/win32/util.c @@ -42,7 +42,7 @@ mono_set_rootdir (void) 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); |