Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Compatibility fix. Apparently all system don't have d_namlen member
Browse files Browse the repository at this point in the history
in their DIR struct.
  • Loading branch information
mkauppila committed Jun 11, 2011
1 parent 3a3d891 commit 06fb2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-automation/runner.c
Expand Up @@ -129,7 +129,7 @@ ScanForTestSuites(char *directoryName, char *extension)
}

while(entry = readdir(directory)) {
if(entry->d_namlen > 2) { // discards . and ..
if(strlen(entry->d_name) > 2) { // discards . and ..
const char *delimiters = ".";
char *name = strtok(entry->d_name, delimiters);
char *ext = strtok(NULL, delimiters);
Expand Down

0 comments on commit 06fb2e7

Please sign in to comment.