diff options
| author | gingerBill <bill@gingerbill.org> | 2018-06-09 19:53:06 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-06-09 19:53:06 +0100 |
| commit | 268491b224ac07edc50d314c071b19970cf157d0 (patch) | |
| tree | aa123c6f95976d7adecb977b9ca4f8d8924ea56b /src/string.cpp | |
| parent | 49ea9ed7226b68cde2eeea3984d61098df9f22e3 (diff) | |
Use global arena for AstNode allocations
Diffstat (limited to 'src/string.cpp')
| -rw-r--r-- | src/string.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.cpp b/src/string.cpp index 96e17f58f..0db54d6df 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -96,7 +96,7 @@ String substring(String const &s, isize lo, isize hi) { char *alloc_cstring(gbAllocator a, String s) { char *c_str = gb_alloc_array(a, char, s.len+1); - gb_memcopy(c_str, s.text, s.len); + gb_memmove(c_str, s.text, s.len); c_str[s.len] = '\0'; return c_str; } |