From 9f0a28017daa4f39f3c16e46df7e766e5de3ca38 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 20 Oct 2019 10:50:18 +0100 Subject: [PATCH] Fix typo in `string_to_string16` #444 --- src/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.cpp b/src/string.cpp index a29f3bd77..6812c5c39 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -404,7 +404,7 @@ String16 string_to_string16(gbAllocator a, String s) { } text[len] = 0; - return make_string16(text, len-1); + return make_string16(text, len); }