diff options
| author | Carl E. Thompson <devel-fltk@carlthompson.net> | 1999-07-12 12:22:45 +0000 |
|---|---|---|
| committer | Carl E. Thompson <devel-fltk@carlthompson.net> | 1999-07-12 12:22:45 +0000 |
| commit | 4da7a063008f187a66ab4d3de72a2d7cbf1d276a (patch) | |
| tree | c15cced06e6acce7297991d5b5b3818993d44f5a | |
| parent | 4acc49c207b198d9f9a1d854d7f364f84322ce6a (diff) | |
Removed patch - didn't fix problem.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_Menu_add.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_Menu_add.cxx b/src/Fl_Menu_add.cxx index 8b2a8b75e..fe1647f78 100644 --- a/src/Fl_Menu_add.cxx +++ b/src/Fl_Menu_add.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Menu_add.cxx,v 1.9.2.3 1999/07/12 11:59:03 mike Exp $" +// "$Id: Fl_Menu_add.cxx,v 1.9.2.4 1999/07/12 12:22:45 carl Exp $" // // Menu utilities for the Fast Light Tool Kit (FLTK). // @@ -35,6 +35,7 @@ #include <FL/Fl_Menu_.H> #include <string.h> +#include <stdio.h> #include <stdlib.h> // If the array is this, we will double-reallocate as necessary: @@ -57,7 +58,7 @@ static Fl_Menu_Item* insert( const char *text, int flags ) { - if (array == local_array && size >= (local_array_alloc - 1)) { + if (array == local_array && size >= local_array_alloc) { local_array_alloc = 2*size; Fl_Menu_Item* newarray = new Fl_Menu_Item[local_array_alloc]; memmove(newarray, array, size*sizeof(Fl_Menu_Item)); @@ -229,5 +230,5 @@ void Fl_Menu_::remove(int i) { } // -// End of "$Id: Fl_Menu_add.cxx,v 1.9.2.3 1999/07/12 11:59:03 mike Exp $". +// End of "$Id: Fl_Menu_add.cxx,v 1.9.2.4 1999/07/12 12:22:45 carl Exp $". // |
