]> sourceware.org Git - newlib-cygwin.git/commit
Fix length returned from sys_cp_wcstombs in case nwc > # of wchars
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 22 Oct 2015 12:22:07 +0000 (14:22 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 22 Oct 2015 12:22:07 +0000 (14:22 +0200)
commitef75017378c2b6ae62cb8bdb196a4d188302f930
tree4ae5fd93d238faf7bc2d8547a632df7592ddfe3d
parentc0345822e502f45b412ab595e14c51dfdae5aaef
Fix length returned from sys_cp_wcstombs in case nwc > # of wchars

* strfuncs.cc (sys_cp_wcstombs): Always return number of multibytes
without trailing NUL as the documentation implies.  Throughout Cygwin,
fix usage to align to this pattern.
* fhandler_process.cc (format_process_winexename): Drop trailing NUL
and LF from output.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/ChangeLog
winsup/cygwin/dcrt0.cc
winsup/cygwin/environ.cc
winsup/cygwin/fhandler_process.cc
winsup/cygwin/fhandler_registry.cc
winsup/cygwin/net.cc
winsup/cygwin/path.cc
winsup/cygwin/strfuncs.cc
winsup/cygwin/uinfo.cc
This page took 0.034181 seconds and 5 git commands to generate.