Ensure that name is null terminated for FFI call in Display connect