If errno is zero strerror_r does not modify the buffer, leaving it unterminated.
authorChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2005 22:46:37 +0000 (22:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2005 22:46:37 +0000 (22:46 +0000)
commit946af52687fea113a6596385bfbdb26994709a37
treebd1830b39bcb205b95f317f0fb1f7c21cc173051
parent2e12c745eae4be1f0c5c5f4840c58918c11c6b1d
If errno is zero strerror_r does not modify the buffer, leaving it unterminated.
This causes garbage to be printed out after error messages.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20165 91177308-0d34-0410-b5e6-96231b3b80d8
lib/System/Unix/MappedFile.inc
lib/System/Unix/Unix.h