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:
authorCorinna Vinschen <corinna@vinschen.de>2010-12-06 16:40:24 +0300
committerCorinna Vinschen <corinna@vinschen.de>2010-12-06 16:40:24 +0300
commitac5d7dcd1872af1348288a62a21d81d8e083476d (patch)
tree4585146bbf0f448ce08d797e4accc554ce7ce8ad /winsup/utils/cygpath.cc
parent9de485e8e0d0aa93eb1351ac45baa9a69e896936 (diff)
* cygpath.cc (get_device_name): Fix path length test.
Diffstat (limited to 'winsup/utils/cygpath.cc')
-rw-r--r--winsup/utils/cygpath.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc
index 997ffc9fa..76de6535b 100644
--- a/winsup/utils/cygpath.cc
+++ b/winsup/utils/cygpath.cc
@@ -279,7 +279,7 @@ get_device_name (char *path)
DOS pathname without the \\.\ prefix. Unless it's
longer than MAX_PATH - 1 in which case it needs
the \\?\ prefix. */
- if (len = strlen (ret + 4) >= MAX_PATH)
+ if ((len = strlen (ret + 4)) >= MAX_PATH)
ret[2] = '?';
else
memmove (ret, ret + 4, strlen (ret + 4) + 1);