diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-12-03 14:13:03 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-12-03 14:13:03 +0000 |
commit | 814066b9120c6884d45665da6ca926e20cbaaf7c (patch) | |
tree | 8818db9a29acbf9f0fb59f27b720b82387ab20d9 /winsup/cygwin/path.cc | |
parent | 268e8d00e9c0d44c9863c66c617e4f50d67c55ad (diff) | |
download | cygnal-814066b9120c6884d45665da6ca926e20cbaaf7c.tar.gz cygnal-814066b9120c6884d45665da6ca926e20cbaaf7c.tar.bz2 cygnal-814066b9120c6884d45665da6ca926e20cbaaf7c.zip |
* autoload.cc (GetModuleFileNameExW): Replace definition of
GetModuleFileNameExA.
* fhandler_process.cc (format_process_maps): Change modname type to
WCHAR. Set buffer sizes to PATH_MAX. Call GetModuleFileNameExW
instead of GetModuleFileNameExA. Call mount_info::conv_to_posix_path
instead of cygwin_conv_to_full_posix_path. Set posix_modname to
modname if that call fails.
(format_process_stat): Set cmd buffer size to NAME_MAX + 1. Simplify
setting cmd to process name.
(format_process_status): Ditto.
* path.cc (mount_info::conv_to_posix_path): Call sys_wcstombs
correctly.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 4253a0291..2f7746489 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -1966,7 +1966,7 @@ mount_info::conv_to_posix_path (PWCHAR src_path, char *posix_path, } } char buf[PATH_MAX]; - sys_wcstombs (buf, PATH_MAX, src_path, 0); + sys_wcstombs (buf, PATH_MAX, src_path); int ret = conv_to_posix_path (buf, posix_path, keep_rel_p); if (changed) src_path[0] = L'C'; |