mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Memory overflow fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@66 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Input_.cxx,v 1.5 1998/11/05 16:04:46 mike Exp $"
|
// "$Id: Fl_Input_.cxx,v 1.6 1998/11/06 20:14:41 mike Exp $"
|
||||||
//
|
//
|
||||||
// Common input widget routines for the Fast Light Tool Kit (FLTK).
|
// Common input widget routines for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -496,7 +496,7 @@ int Fl_Input_::replace(int b, int e, const char* text, int ilen) {
|
|||||||
undocut = e-b;
|
undocut = e-b;
|
||||||
undoinsert = 0;
|
undoinsert = 0;
|
||||||
}
|
}
|
||||||
memcpy(buffer+b, buffer+e, size_-b+1);
|
memcpy(buffer+b, buffer+e, size_-e+1);
|
||||||
size_ -= e-b;
|
size_ -= e-b;
|
||||||
undowidget = this;
|
undowidget = this;
|
||||||
undoat = b;
|
undoat = b;
|
||||||
@@ -725,5 +725,5 @@ Fl_Input_::~Fl_Input_() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Input_.cxx,v 1.5 1998/11/05 16:04:46 mike Exp $".
|
// End of "$Id: Fl_Input_.cxx,v 1.6 1998/11/06 20:14:41 mike Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user