From 8aa66a6c6c0d8984b7d2668c03bad5a3b29e3a33 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 5 Oct 2025 15:41:23 +0200 Subject: memops wrapper, remove unused includes --- src/strops.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/strops.cpp') diff --git a/src/strops.cpp b/src/strops.cpp index 6142c01..146a909 100644 --- a/src/strops.cpp +++ b/src/strops.cpp @@ -14,10 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include #include +#include "memops.hpp" #include "strops.hpp" namespace strops { @@ -36,7 +36,7 @@ namespace strops { if (srclen > size) srclen = size; - memcpy(dst, src, srclen); + memops::copy(dst, src, srclen); dst[srclen] = '\0'; return (srclen); @@ -99,7 +99,7 @@ namespace strops { skip_size = replace_len; } - memcpy(w, replace, copy_len); + memops::copy(w, replace, copy_len); w += copy_len; r += skip_size; } else { @@ -169,7 +169,7 @@ namespace strops { { if (!input) return NULL; - char *result = (char*)malloc(buffer_size * 2 + 1); + char *result = (char*)memops::alloc(buffer_size * 2 + 1); if (!result) return NULL; const char *src = input; -- cgit v1.2.3-70-g09d2