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:
authorChristopher Faylor <me@cgf.cx>2001-05-01 09:26:06 +0400
committerChristopher Faylor <me@cgf.cx>2001-05-01 09:26:06 +0400
commit4c265f4ab9d9474fe9176e2b807bbc0adf4ead3c (patch)
tree2e26c3b87b1590c6a6207c1088ae318378ed7437 /winsup/cygwin/path.cc
parentbeab320f33c85ae95b4167dd8c5cda760bcd2393 (diff)
* path.cc (mount_info::conv_to_win32_path): More path tweaking.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 07ea32161..3814039b2 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1242,7 +1242,7 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst,
int n = mi->native_pathlen;
memcpy (dst, mi->native_path, n + 1);
char *p = pathbuf + mi->posix_pathlen;
- if ((isdrive (dst) && !dst[2]) || (*p && dst[n - 1] != '\\'))
+ if ((isdrive (dst) && !dst[2]) || (*p && *p != '/'))
dst[n++] = '\\';
strcpy (dst + n, p);
backslashify (dst, dst, 0);