* cygheap.cc (chgheap_root::operator =): Check root dir properly.

This commit is contained in:
Corinna Vinschen 2000-11-29 22:27:15 +00:00
parent b52aba3fc2
commit 09872ef885
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed Nov 29 18:25:53 2000 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* cygheap.cc (chgheap_root::operator =): Check root dir properly.
Thu Nov 29 18:11:00 2000 Corinna Vinschen <corinna@vinschen.de>
* net.cc (cygwin_inet_aton): Return nonzero if the address

View File

@ -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)
{