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>2000-11-30 01:27:15 +0300
committerCorinna Vinschen <corinna@vinschen.de>2000-11-30 01:27:15 +0300
commit09872ef885e9307dc41eb41fdc08bdb1f8ffef7a (patch)
tree981a69dfe0a3c30069cba2625e81f273231fcc23 /winsup/cygwin/cygheap.cc
parentb52aba3fc292bced2167b49831db4a5350dfa090 (diff)
* cygheap.cc (chgheap_root::operator =): Check root dir properly.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index 0d720e9d5..697827b85 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)
{