* src/hildon-date-selector.c (_month_days): Check for month to be
strictly less than 12, since otherwise we may overrun the array.
+2009-03-05 Claudio Saavedra <csaavedra@igalia.com>
+
+ * src/hildon-date-selector.c (_month_days): Check for month to be
+ strictly less than 12, since otherwise we may overrun the array.
+
2009-03-04 Alberto Garcia <agarcia@igalia.com>
* src/hildon-date-button.c (+hildon_date_button_new_full)
{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
};
- g_return_val_if_fail (month >= 0 && month <= 12, -1);
+ g_return_val_if_fail (month >= 0 && month < 12, -1);
return month_days[_leap (year)][month];
}