Test: Fix testToPath breakage

This commit is contained in:
Vicki Pfau 2020-07-28 16:14:15 -07:00
parent 5b2d797e6d
commit ec30e1f8ec
1 changed files with 4 additions and 0 deletions

View File

@ -270,6 +270,10 @@ static void testToPath(const char* testName, char* path) {
++i;
}
}
if (i == PATH_MAX) {
--i;
}
path[i] = '\0';
}
static void _loadConfigTree(struct Table* configTree, const char* testName) {