diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-06 20:14:41 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-06 20:14:41 +0000 |
| commit | 39be2233f48d90a9114e078f15507c31f4df4f45 (patch) | |
| tree | fc7ede9fa1ff54b8a60df1153cfdc1092f33bd20 /src | |
| parent | d9ddb41ac4712371cd8f2a925213e795a31f17f9 (diff) | |
Memory overflow fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@66 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Input_.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index da1594106..03757935f 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -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). // @@ -496,7 +496,7 @@ int Fl_Input_::replace(int b, int e, const char* text, int ilen) { undocut = e-b; undoinsert = 0; } - memcpy(buffer+b, buffer+e, size_-b+1); + memcpy(buffer+b, buffer+e, size_-e+1); size_ -= e-b; undowidget = this; 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 $". // |
