Index: include/core/SkTArray.h |
diff --git a/include/core/SkTArray.h b/include/core/SkTArray.h |
index 401f7084d6e548e0e7931f88031b973549ab735b..9f1bfa1ac18e5d82bba2ba2370f171bdf4876bdc 100644 |
--- a/include/core/SkTArray.h |
+++ b/include/core/SkTArray.h |
@@ -23,11 +23,11 @@ inline void copy(SkTArray<T, true>* self, int dst, int src) { |
} |
template<typename T> |
inline void copy(SkTArray<T, true>* self, const T* array) { |
- memcpy(self->fMemArray, array, self->fCount * sizeof(T)); |
+ sk_careful_memcpy(self->fMemArray, array, self->fCount * sizeof(T)); |
} |
template<typename T> |
inline void copyAndDelete(SkTArray<T, true>* self, char* newMemArray) { |
- memcpy(newMemArray, self->fMemArray, self->fCount * sizeof(T)); |
+ sk_careful_memcpy(newMemArray, self->fMemArray, self->fCount * sizeof(T)); |
} |
template<typename T> |