Use ffi buffers for long_path and short_path.