Removed patch - didn't fix problem.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Carl E. Thompson 1999-07-12 12:22:45 +00:00
parent 4acc49c207
commit 4da7a06300

View File

@ -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). // Menu utilities for the Fast Light Tool Kit (FLTK).
// //
@ -35,6 +35,7 @@
#include <FL/Fl_Menu_.H> #include <FL/Fl_Menu_.H>
#include <string.h> #include <string.h>
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
// If the array is this, we will double-reallocate as necessary: // If the array is this, we will double-reallocate as necessary:
@ -57,7 +58,7 @@ static Fl_Menu_Item* insert(
const char *text, const char *text,
int flags int flags
) { ) {
if (array == local_array && size >= (local_array_alloc - 1)) { if (array == local_array && size >= local_array_alloc) {
local_array_alloc = 2*size; local_array_alloc = 2*size;
Fl_Menu_Item* newarray = new Fl_Menu_Item[local_array_alloc]; Fl_Menu_Item* newarray = new Fl_Menu_Item[local_array_alloc];
memmove(newarray, array, size*sizeof(Fl_Menu_Item)); 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 $".
// //