Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dessent <brian@dessent.net>2008-03-08 06:28:34 +0300
committerBrian Dessent <brian@dessent.net>2008-03-08 06:28:34 +0300
commit23c6ed039467501a15afe650efcc6a6354e7687d (patch)
tree90ef03edaa99d023a2c40defecd7aa01be3a5219 /winsup/cygwin/dtable.cc
parent244191b6a987eb852dd77a9f4f568feddae3739e (diff)
* 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);