summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dtable.cc
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 /winsup/cygwin/dtable.cc
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.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc1
1 files changed, 1 insertions, 0 deletions
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);