diff --git a/du3/program b/du3/program index e021d85..dbf6ab6 100755 Binary files a/du3/program and b/du3/program differ diff --git a/du3/program.c b/du3/program.c index c6ffa0c..51482cc 100644 --- a/du3/program.c +++ b/du3/program.c @@ -33,13 +33,15 @@ int datevalid(int d, int m, int y) { return 0; } - if(m == 2) { - if(isleap(y)) { - if(d <= 29) { - return 1; + if (m == 2) { + if (isleap(y)) { + if (d > 29) { + return 0; } } else { - return 0; + if (d > 28) { + return 0; + } } }