Skip to content

Commit d96813e

Browse files
committed
For memcpy() use PlatformSpecificMemCpy()
1 parent 73c8a55 commit d96813e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/CppUTestExt/MockNamedValue.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626
*/
2727

28-
#include "CppUTest/StandardCLibrary.h"
29-
3028
#include "CppUTest/TestHarness.h"
3129
#include "CppUTestExt/MockNamedValue.h"
3230
#include "CppUTest/PlatformSpecificFunctions.h"
@@ -141,7 +139,7 @@ void MockNamedValue::copyValue(const void* value, size_t size)
141139
if (membuf_ == NULLPTR) {
142140
membuf_ = new char[size];
143141
}
144-
memcpy(membuf_, value, size);
142+
PlatformSpecificMemCpy(membuf_, value, size);
145143
value_.constPointerValue_ = (const void*) membuf_;
146144
size_ = size;
147145
}

0 commit comments

Comments
 (0)