aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-10-20 10:50:18 +0100
committergingerBill <bill@gingerbill.org>2019-10-20 10:50:18 +0100
commit9f0a28017daa4f39f3c16e46df7e766e5de3ca38 (patch)
tree011403f5ac2a8c847270e6d7a07ddde4792ed604 /src/string.cpp
parent2afe4bea67ff50c2ad41ff7c3ba7fbdc18748746 (diff)
Fix typo in `string_to_string16` #444
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}