Use correct memcpy

This commit is contained in:
rexy712 2022-07-15 16:37:06 -07:00
parent 26b7723f19
commit 1d06516181

View File

@ -28,7 +28,7 @@
#include <initializer_list> #include <initializer_list>
#include "steal.hpp" #include "steal.hpp"
#include "utility.hpp" #include "utility.hpp" //memcpy
#include "traits.hpp" #include "traits.hpp"
#include "expression.hpp" #include "expression.hpp"
#include "detail/string_appender.hpp" #include "detail/string_appender.hpp"
@ -161,7 +161,7 @@ namespace rexy{
}else if(len){ }else if(len){
set_islong_flag(false); set_islong_flag(false);
pointer raw = set_short_ptr(); pointer raw = set_short_ptr();
memcpy(raw, data, sizeof(value_type)*len); rexy::memcpy(raw, data, sizeof(value_type)*len);
raw[len] = 0; raw[len] = 0;
set_short_length(len); set_short_length(len);
set_short_capacity(cap); set_short_capacity(cap);