From 58b42cd9773e47dc030f6ac3a481310674869b9b Mon Sep 17 00:00:00 2001 From: mercierc Date: Wed, 8 Sep 2021 10:52:42 +1200 Subject: [PATCH] C: views: now correctly parses view names containing '.' when cleaning unfinished views. Closes #115 --- src/obiview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);