Hi, Are these kind of patches considered useful ? Documentation says memmove should be used when the memory areas overlap and valgrind warns about it.
Philippe Index: base/Source/NSPointerArray.m =================================================================== --- base/Source/NSPointerArray.m (révision 32115) +++ base/Source/NSPointerArray.m (copie de travail) @@ -281,7 +281,7 @@ } if (i < _count - 1) { - memcpy(_contents + j, _contents + i + 1, + memmove(_contents + j, _contents + i + 1, (_count - i) * sizeof(void*)); } _count = i = j; _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev