fix another coverity bug
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2006-04-16 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
|
||||
possible array overrun. (Coverity)
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a
|
||||
possible array overrun. (Coverity)
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
2006-04-16 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
|
||||
possible array overrun. (Coverity)
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a
|
||||
possible array overrun. (Coverity)
|
||||
|
||||
|
||||
@@ -1287,7 +1287,7 @@ set_initial_hints (GdkWindow *window)
|
||||
Window xwindow = GDK_WINDOW_XID (window);
|
||||
GdkWindowObject *private;
|
||||
GdkToplevelX11 *toplevel;
|
||||
Atom atoms[7];
|
||||
Atom atoms[9];
|
||||
gint i;
|
||||
|
||||
private = (GdkWindowObject*) window;
|
||||
|
||||
@@ -2807,11 +2807,11 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user