Use correct memcpy
This commit is contained in:
parent
26b7723f19
commit
1d06516181
@ -28,7 +28,7 @@
|
||||
#include <initializer_list>
|
||||
|
||||
#include "steal.hpp"
|
||||
#include "utility.hpp"
|
||||
#include "utility.hpp" //memcpy
|
||||
#include "traits.hpp"
|
||||
#include "expression.hpp"
|
||||
#include "detail/string_appender.hpp"
|
||||
@ -161,7 +161,7 @@ namespace rexy{
|
||||
}else if(len){
|
||||
set_islong_flag(false);
|
||||
pointer raw = set_short_ptr();
|
||||
memcpy(raw, data, sizeof(value_type)*len);
|
||||
rexy::memcpy(raw, data, sizeof(value_type)*len);
|
||||
raw[len] = 0;
|
||||
set_short_length(len);
|
||||
set_short_capacity(cap);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user