CInema: Fix glob anchoring

This commit is contained in:
Vicki Pfau 2021-03-17 18:11:45 -07:00
parent 2e6f8b4af9
commit f853de37b9
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ static bool globTests(struct CInemaTestList* tests, const char* glob, const char
} else if (next[0] == '.') {
char subtest[MAX_TEST];
if (!ancestors) {
strncpy(subtest, glob, next - glob);
strlcpy(subtest, glob, next - glob + 1);
} else {
size_t len = strlen(ancestors) + (next - glob) + 2;
if (len > sizeof(subtest)) {