From 814066b9120c6884d45665da6ca926e20cbaaf7c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 3 Dec 2007 14:13:03 +0000 Subject: * 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. --- winsup/cygwin/path.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/path.cc') 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'; -- cgit v1.2.3