diff options
author | Brian Dessent <brian@dessent.net> | 2008-03-08 03:28:34 +0000 |
---|---|---|
committer | Brian Dessent <brian@dessent.net> | 2008-03-08 03:28:34 +0000 |
commit | 23c6ed039467501a15afe650efcc6a6354e7687d (patch) | |
tree | 90ef03edaa99d023a2c40defecd7aa01be3a5219 /winsup | |
parent | 244191b6a987eb852dd77a9f4f568feddae3739e (diff) | |
download | cygnal-23c6ed039467501a15afe650efcc6a6354e7687d.tar.gz cygnal-23c6ed039467501a15afe650efcc6a6354e7687d.tar.bz2 cygnal-23c6ed039467501a15afe650efcc6a6354e7687d.zip |
* dtable.cc (handle_to_fn): Null-terminate posix_fn in the case
of justslash = true.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/dtable.cc | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d0f593561..c317dd334 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2008-03-07 Brian Dessent <brian@dessent.net> + * dtable.cc (handle_to_fn): Null-terminate posix_fn in the case + of justslash = true. + +2008-03-07 Brian Dessent <brian@dessent.net> + * fhandler.cc (fhandler_base::open): Use %S for PUNICODE_STRING. * syscalls.cc (setmode): Ditto. diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index 2670e53b6..aaa536525 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -952,6 +952,7 @@ handle_to_fn (HANDLE h, char *posix_fn) *d = '/'; else *d = *s; + *d = 0; } debug_printf ("derived path '%s', posix '%s'", w32, posix_fn); |