From 1d06516181b772561876142547037c67651e119e Mon Sep 17 00:00:00 2001 From: rexy712 Date: Fri, 15 Jul 2022 16:37:06 -0700 Subject: [PATCH] Use correct memcpy --- include/rexy/string_base.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rexy/string_base.hpp b/include/rexy/string_base.hpp index 6a3fc9a..8933fe7 100644 --- a/include/rexy/string_base.hpp +++ b/include/rexy/string_base.hpp @@ -28,7 +28,7 @@ #include #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);