[tests] Fix a buffer overflow in test, caught by ASan.
[tests] Fix a buffer overflow in test, caught by ASan.

apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild