diff --git a/tester/common/bc_tester_utils.c b/tester/common/bc_tester_utils.c index dd9b99b79..7ad75eea0 100644 --- a/tester/common/bc_tester_utils.c +++ b/tester/common/bc_tester_utils.c @@ -328,9 +328,11 @@ void bc_tester_helper(const char *name, const char* additionnal_helper) { static int file_exists(const char* root_path) { FILE* file; char * sounds_path = malloc(sizeof(char)*strlen(root_path)+strlen("sounds")); + int found; + sprintf(sounds_path, "%ssounds", root_path); file = fopen(sounds_path, "r"); - int found = (file != NULL); + found = (file != NULL); if (file) fclose(file); return found; }