summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Dessent <brian@dessent.net>2008-03-08 03:28:34 +0000
committerBrian Dessent <brian@dessent.net>2008-03-08 03:28:34 +0000
commit23c6ed039467501a15afe650efcc6a6354e7687d (patch)
tree90ef03edaa99d023a2c40defecd7aa01be3a5219
parent244191b6a987eb852dd77a9f4f568feddae3739e (diff)
downloadcygnal-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.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/dtable.cc1
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);