diff --git a/src/obiview.c b/src/obiview.c index f2c741f..456f22b 100755 --- a/src/obiview.c +++ b/src/obiview.c @@ -2910,7 +2910,7 @@ int obi_clean_unfinished_views(OBIDMS_p dms) if ((dp->d_name)[0] == '.') continue; i=0; - while ((dp->d_name)[i] != '.') + while (strncmp((dp->d_name)+i, ".obiview", 8)) i++; relative_path = (char*) malloc(strlen(VIEW_DIR_NAME) + strlen(dp->d_name) + 2); strcpy(relative_path, VIEW_DIR_NAME);