diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-11-29 22:27:15 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-11-29 22:27:15 +0000 |
commit | 09872ef885e9307dc41eb41fdc08bdb1f8ffef7a (patch) | |
tree | 981a69dfe0a3c30069cba2625e81f273231fcc23 /winsup/cygwin/cygheap.cc | |
parent | b52aba3fc292bced2167b49831db4a5350dfa090 (diff) | |
download | newlib-09872ef885e9307dc41eb41fdc08bdb1f8ffef7a.zip newlib-09872ef885e9307dc41eb41fdc08bdb1f8ffef7a.tar.gz newlib-09872ef885e9307dc41eb41fdc08bdb1f8ffef7a.tar.bz2 |
* cygheap.cc (chgheap_root::operator =): Check root dir properly.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index 0d720e9..697827b 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -305,7 +305,7 @@ cygheap_root::operator =(const char *new_root) { root = cstrdup (new_root); rootlen = strlen (root); - if (rootlen > 1 && root[rootlen - 1] == '/') + if (rootlen >= 1 && root[rootlen - 1] == '/') root[--rootlen] = '\0'; if (!rootlen) { |