* cygheap.cc (chgheap_root::operator =): Check root dir properly.
This commit is contained in:
parent
b52aba3fc2
commit
09872ef885
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue