Foundation: dynamically allocate temporary path
Foundation: dynamically allocate temporary path

Query the desired buffer size and allocate an appropriate buffer for the
temporary path query.  This should prevent a truncated path from being
given.

e78l/swift-corelibs-foundation,parkera/swift-corelibs-foundation,e78l/swift-corelibs-foundation,parkera/swift-corelibs-foundation,apple/swift-corelibs-foundation,parkera/swift-corelibs-foundation,e78l/swift-corelibs-foundation,apple/swift-corelibs-foundation,parkera/swift-corelibs-foundation,e78l/swift-corelibs-foundation,apple/swift-corelibs-foundation,apple/swift-corelibs-foundation,e78l/swift-corelibs-foundation,apple/swift-corelibs-foundation,parkera/swift-corelibs-foundation