Add some WIP stuff

This commit is contained in:
TJ DeVries
2020-08-31 22:23:12 -04:00
parent 8cf3952f27
commit 51ed9c3e98
3 changed files with 63 additions and 28 deletions

View File

@@ -96,7 +96,7 @@ utils.path_shorten = (function()
]]
return function(path)
local c_str = ffi.new("char[?]", #path)
local c_str = ffi.new("char[?]", #path + 1)
ffi.copy(c_str, path)
return ffi.string(ffi.C.shorten_dir(c_str))
end