aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/unit/helpers.moon4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/helpers.moon b/test/unit/helpers.moon
index 438f36811c..8064537d93 100644
--- a/test/unit/helpers.moon
+++ b/test/unit/helpers.moon
@@ -88,9 +88,9 @@ cimport './src/nvim/types.h'
-- take a pointer to a C-allocated string and return an interned
-- version while also freeing the memory
-internalize = (cdata) ->
+internalize = (cdata, len) ->
ffi.gc cdata, ffi.C.free
- return ffi.string cdata
+ return ffi.string cdata, len
cstr = ffi.typeof 'char[?]'