diff packages/services/memalloc/common/current/src/dlmalloc.cxx @ 2692:8a1c58fa439d

* src/dlmalloc.cxx (MALLOC_COPY): Reinstate fix of 2008-01-06 (reverting change of 2008-11-03). * cdl/memalloc.cdl (CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_USE_MEMCPY): Make explicit dependency on isoinfra functionality block which includes memmove(), and set default_value accordingly.
author jlarmour
date Fri, 19 Dec 2008 05:49:15 +0000
parents 07fc475e1c28
children 74dbf4c3f2e1
line wrap: on
line diff
--- a/packages/services/memalloc/common/current/src/dlmalloc.cxx
+++ b/packages/services/memalloc/common/current/src/dlmalloc.cxx
@@ -333,7 +333,7 @@ do {                                    
                                      *mcdst++ = *mcsrc++;                     \
                                      *mcdst++ = *mcsrc++;                     \
                                      *mcdst   = *mcsrc  ;                     \
-  } else memcpy(dest, src, mcsz);                                             \
+  } else memmove(dest, src, mcsz);                                            \
 } while(0)
 
 #else /* !CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_USE_MEMCPY */