fixed error in last commit: second character must terminate

This commit is contained in:
nvt-se 2009-02-27 13:21:59 +00:00
parent a258be684f
commit 5e038640e2

View file

@ -1123,7 +1123,7 @@ int
cfs_opendir(struct cfs_dir *dir, const char *name)
{
/* We have only a root directory. */
if((name[0] == '/' || name[0] == '.') && name[1] != '\0') {
if((name[0] == '/' || name[0] == '.') && name[1] == '\0') {
*(coffee_page_t *)dir->dummy_space = 0;
return 0;
}