summaryrefslogtreecommitdiff
path: root/src/Fl_Shared_Image.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-10-11 14:17:24 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-10-11 14:17:24 +0000
commitbe58513af7841d07a8cb4017b57e17dfb4031a1e (patch)
tree5c3fae000b4e897d70a9b738fd3fd7dca89b1880 /src/Fl_Shared_Image.cxx
parentfddb73a5f2cef20092927c37451e0d15c1d3d2a3 (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_Shared_Image.cxx')
-rw-r--r--src/Fl_Shared_Image.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Shared_Image.cxx b/src/Fl_Shared_Image.cxx
index b094c1f89..586767442 100644
--- a/src/Fl_Shared_Image.cxx
+++ b/src/Fl_Shared_Image.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Shared_Image.cxx,v 1.23.2.16 2002/08/09 01:09:49 easysw Exp $"
+// "$Id: Fl_Shared_Image.cxx,v 1.23.2.17 2002/10/11 14:17:24 easysw Exp $"
//
// Shared image code for the Fast Light Tool Kit (FLTK).
//
@@ -189,7 +189,7 @@ Fl_Shared_Image::release() {
num_images_ --;
if (i < num_images_) {
- memcpy(images_ + i, images_ + i + 1,
+ memmove(images_ + i, images_ + i + 1,
(num_images_ - i) * sizeof(Fl_Shared_Image *));
}
@@ -448,12 +448,12 @@ Fl_Shared_Image::remove_handler(Fl_Shared_Handler f) {
if (i < num_handlers_) {
// Shift later handlers down 1...
- memcpy(handlers_ + i, handlers_ + i + 1,
+ memmove(handlers_ + i, handlers_ + i + 1,
(num_handlers_ - i) * sizeof(Fl_Shared_Handler ));
}
}
//
-// End of "$Id: Fl_Shared_Image.cxx,v 1.23.2.16 2002/08/09 01:09:49 easysw Exp $".
+// End of "$Id: Fl_Shared_Image.cxx,v 1.23.2.17 2002/10/11 14:17:24 easysw Exp $".
//