diff options
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 1f9028a4d..d0eab0298 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -1346,7 +1346,8 @@ normalize_win32_path (const char *src, char *dst, char *&tail) else { tail = strchr (tail, '\0'); - *tail++ = '\\'; + if (tail[-1] != '\\') + *tail++ = '\\'; } } |