This patch prevents calendar events marked with end dates before start dates from putting Scoop into an infinite loop and exhausting all available memory. ---- --- Scoop/Calendar.pm.orig 2007-10-30 01:13:49.000000000 -0600 +++ Scoop/Calendar.pm 2007-10-30 01:14:19.000000000 -0600 @@ -900,7 +900,7 @@ my $Dd = Date::Calc::Delta_Days($date_start[0],$date_start[1],$date_start[2],@date_end); my @working_date = @date_start; my $i = $Dd - 1; - while ( $i ) { + while ( $i > 0 ) { @working_date = Date::Calc::Add_Delta_Days(@working_date,1); $working_date[1] = "0$working_date[1]" if $working_date[1] < 10; $working_date[2] = "0$working_date[2]" if $working_date[2] < 10;