diff --git a/src/utictactoe.c b/src/utictactoe.c index 9f965ca..469f65f 100644 --- a/src/utictactoe.c +++ b/src/utictactoe.c @@ -104,7 +104,7 @@ int main(int argc, char* argv[]) { case 'c': if ( OPTIONAL_ARGUMENT_IS_PRESENT ) { - if ( access(optarg, F_OK) != -1) { + if ( access(optarg, F_OK) == 0) { printf("Contest file valid\n"); } else {