gimp r28002 - in trunk: . app/tools



Author: martinn
Date: Sun Feb  8 19:26:25 2009
New Revision: 28002
URL: http://svn.gnome.org/viewvc/gimp?rev=28002&view=rev

Log:
Fix stack overwrites in gimp_paint_options_gui()

Modified:
   trunk/ChangeLog
   trunk/app/tools/gimppaintoptions-gui.c

Modified: trunk/app/tools/gimppaintoptions-gui.c
==============================================================================
--- trunk/app/tools/gimppaintoptions-gui.c	(original)
+++ trunk/app/tools/gimppaintoptions-gui.c	Sun Feb  8 19:26:25 2009
@@ -96,7 +96,7 @@
   GtkWidget        *incremental_toggle = NULL;
   gint              table_row          = 0;
   gint              n_dynamics         = 0;
-  GtkWidget        *dynamics_labels[5];
+  GtkWidget        *dynamics_labels[6];
   GType             tool_type;
 
   tool_type = tool_options->tool_info->tool_type;
@@ -192,6 +192,11 @@
       n_dynamics++;
     }
 
+  /* NB: When adding new dynamics, increase size of the
+   * dynamics_labels[] array
+   */
+
+
   if (n_dynamics > 0)
     {
       GtkWidget *inner_frame;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]