fix another coverity bug

This commit is contained in:
Matthias Clasen
2006-04-16 05:05:03 +00:00
parent 97327de395
commit 995e010dbe
4 changed files with 9 additions and 3 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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;

View File

@@ -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);