summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dtable.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-02-07 15:49:08 +0000
committerCorinna Vinschen <corinna@vinschen.de>2006-02-07 15:49:08 +0000
commit03a49a00ab2239e769c61592ea946d151ea95114 (patch)
treef7bad6c6fd475c542d11a6573b22395a23a287d4 /winsup/cygwin/dtable.cc
parent3cb155a97f98f2f7e9e68b6c536b9bb3777e33d8 (diff)
downloadcygnal-03a49a00ab2239e769c61592ea946d151ea95114.tar.gz
cygnal-03a49a00ab2239e769c61592ea946d151ea95114.tar.bz2
cygnal-03a49a00ab2239e769c61592ea946d151ea95114.zip
* dtable.cc (handle_to_fn): Accomodate new argument order in call to
sys_wcstombs. * fhandler_disk_file.cc (fhandler_disk_file::readdir): Call sys_wcstombs instead of just wcstombs to accomodate OEM codepages. * miscfuncs.cc (sys_wcstombs): Split len argument in source and target length. Always 0-terminate result in target string. * security.cc (lsa2wchar): Remove unused function. (lsa2str): Ditto. (get_lsa_srv_inf): Ditto. (get_logon_server): Accomodate new argument order in call to sys_wcstombs. (get_user_groups): Ditto. (get_user_local_groups): Ditto. (get_priv_list): Call sys_wcstombs directly instead of lsa2str. * uinfo.cc (cygheap_user::ontherange): Accomodate new argument order in call to sys_wcstombs. * winsup.h (sys_wcstombs): Change prototype to match new argument order.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index 31b119871..c4a8333d5 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -848,7 +848,7 @@ handle_to_fn (HANDLE h, char *posix_fn)
ntfn->Name.Buffer[ntfn->Name.Length / sizeof (WCHAR)] = 0;
char win32_fn[CYG_MAX_PATH + 100];
- sys_wcstombs (win32_fn, ntfn->Name.Buffer, ntfn->Name.Length);
+ sys_wcstombs (win32_fn, CYG_MAX_PATH + 100, ntfn->Name.Buffer);
debug_printf ("nt name '%s'", win32_fn);
if (!strncasematch (win32_fn, DEVICE_PREFIX, DEVICE_PREFIX_LEN)
|| !QueryDosDevice (NULL, fnbuf, sizeof (fnbuf)))