summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);