mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Avoid a possible array overrun. (Coverity)
2006-04-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a possible array overrun. (Coverity)
This commit is contained in:
parent
2f24913cb5
commit
d121da8531
@ -2832,12 +2832,12 @@ gtk_calendar_key_press (GtkWidget *widget,
|
||||
case GDK_space:
|
||||
row = calendar->focus_row;
|
||||
col = calendar->focus_col;
|
||||
day = calendar->day[row][col];
|
||||
|
||||
if (row > -1 && col > -1)
|
||||
{
|
||||
return_val = TRUE;
|
||||
|
||||
day = calendar->day[row][col];
|
||||
if (calendar->day_month[row][col] == MONTH_PREV)
|
||||
calendar_set_month_prev (calendar);
|
||||
else if (calendar->day_month[row][col] == MONTH_NEXT)
|
||||
|
Loading…
Reference in New Issue
Block a user