Add some WIP stuff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user