diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-11 14:17:24 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-11 14:17:24 +0000 |
| commit | be58513af7841d07a8cb4017b57e17dfb4031a1e (patch) | |
| tree | 5c3fae000b4e897d70a9b738fd3fd7dca89b1880 /src/Fl_Chart.cxx | |
| parent | fddb73a5f2cef20092927c37451e0d15c1d3d2a3 (diff) | |
Use memmove() instead of memcpy() in several key places.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Chart.cxx')
| -rw-r--r-- | src/Fl_Chart.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Chart.cxx b/src/Fl_Chart.cxx index cd2564fc1..229c14262 100644 --- a/src/Fl_Chart.cxx +++ b/src/Fl_Chart.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Chart.cxx,v 1.5.2.6.2.10 2002/09/04 20:33:18 easysw Exp $" +// "$Id: Fl_Chart.cxx,v 1.5.2.6.2.11 2002/10/11 14:17:21 easysw Exp $" // // Forms-compatible chart widget for the Fast Light Tool Kit (FLTK). // @@ -315,7 +315,7 @@ void Fl_Chart::add(double val, const char *str, unsigned col) { } // Shift entries as needed if (numb >= maxnumb && maxnumb > 0) { - memcpy(entries, entries + 1, sizeof(FL_CHART_ENTRY) * (numb - 1)); + memmove(entries, entries + 1, sizeof(FL_CHART_ENTRY) * (numb - 1)); numb --; } entries[numb].val = float(val); @@ -384,5 +384,5 @@ void Fl_Chart::maxsize(int m) { } // -// End of "$Id: Fl_Chart.cxx,v 1.5.2.6.2.10 2002/09/04 20:33:18 easysw Exp $". +// End of "$Id: Fl_Chart.cxx,v 1.5.2.6.2.11 2002/10/11 14:17:21 easysw Exp $". // |
