]> Pileus Git - ~andy/gtk/commitdiff
Fir the patch from bug #504886 not to read unitialised memory.
authorChristian Persch <chpe@gnome.org>
Thu, 27 Dec 2007 12:09:06 +0000 (12:09 +0000)
committerChristian Persch <chpe@src.gnome.org>
Thu, 27 Dec 2007 12:09:06 +0000 (12:09 +0000)
2007-12-27  Christian Persch  <chpe@gnome.org>

* gdk/x11/gdkscreen-x11.c: (init_randr12): Fir the patch from
bug #504886 not to read unitialised memory.

svn path=/trunk/; revision=19247

ChangeLog
gdk/x11/gdkscreen-x11.c

index 1594cf672d5a55fb95a68f62f92447397fe927aa..17726636ba2e9171c8ba643c91bde7287513f3c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-27  Christian Persch  <chpe@gnome.org>
+
+       * gdk/x11/gdkscreen-x11.c: (init_randr12): Fir the patch from 
+       bug #504886 not to read unitialised memory.
+
 2007-12-26  Xan Lopez  <xan@gnome.org>
 
        * gtk/gtkstatusbar.c (has_extra_children): take into account the
index 5c1f36e5db469466d279c7b1ad357237af68e0a0..9fd56dde06b79a632b59004eb53dd20642aa1a6f 100644 (file)
@@ -684,7 +684,7 @@ init_randr12 (GdkScreen *screen)
     return FALSE;
   
   monitors = g_array_sized_new (FALSE, TRUE, sizeof (GdkX11Monitor),
-                                monitors->len);
+                                resources->noutput);
 
   for (i = 0; i < resources->noutput; ++i)
     {