diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-12-06 13:40:24 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-12-06 13:40:24 +0000 |
commit | ac5d7dcd1872af1348288a62a21d81d8e083476d (patch) | |
tree | 4585146bbf0f448ce08d797e4accc554ce7ce8ad /winsup/utils/cygpath.cc | |
parent | 9de485e8e0d0aa93eb1351ac45baa9a69e896936 (diff) | |
download | newlib-ac5d7dcd1872af1348288a62a21d81d8e083476d.zip newlib-ac5d7dcd1872af1348288a62a21d81d8e083476d.tar.gz newlib-ac5d7dcd1872af1348288a62a21d81d8e083476d.tar.bz2 |
* cygpath.cc (get_device_name): Fix path length test.
Diffstat (limited to 'winsup/utils/cygpath.cc')
-rw-r--r-- | winsup/utils/cygpath.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc index 997ffc9..76de653 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); |