mirror of
https://github.com/apple/swift-foundation.git
synced 2025-05-28 09:47:07 +08:00
The returned value in the success case does not account for the terminating nul character, resulting in the value being 1 less than the allocation required. This was causing a spurious failure and thus unable to compute the location of the process.