diff --git a/src/ox/std/strops.hpp b/src/ox/std/strops.hpp index 80d3c97e2..cf01354c9 100644 --- a/src/ox/std/strops.hpp +++ b/src/ox/std/strops.hpp @@ -15,7 +15,7 @@ #include "writer.hpp" template -constexpr char *ox_strcpy(T1 dest, T2 src) noexcept { +constexpr T1 ox_strcpy(T1 dest, T2 src) noexcept { using T1Type = typename ox::remove_reference::type; std::size_t i = 0; while (src[i]) { @@ -28,7 +28,7 @@ constexpr char *ox_strcpy(T1 dest, T2 src) noexcept { } template -constexpr char *ox_strncpy(T1 dest, T2 src, std::size_t maxLen) noexcept { +constexpr T1 ox_strncpy(T1 dest, T2 src, std::size_t maxLen) noexcept { using T1Type = typename ox::remove_reference::type; std::size_t i = 0; while (i < maxLen && src[i]) {