From d293913006ea1809ab6a684c88efe6029514074d Mon Sep 17 00:00:00 2001 From: LunaTheFoxgirl Date: Fri, 31 May 2024 21:12:01 +0200 Subject: [PATCH] Only take C strings from ref --- source/numem/mem/string.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/numem/mem/string.d b/source/numem/mem/string.d index 8ee7893..b65bf63 100644 --- a/source/numem/mem/string.d +++ b/source/numem/mem/string.d @@ -73,7 +73,7 @@ public: Creates a string with specified text */ @system - this(const(char)* text) { + this(ref const(char)* text) { import core.stdc.string : strlen; size_t len = strlen(text); this.set_(text[0..len]);