diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-14 21:42:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-14 21:42:10 +0000 |
commit | 0798056b286051fd0f9e8704179ebb4f577cadd5 (patch) | |
tree | 8e338ab4f36e31091da6e773e7c417a8a6831cce /lib/System/Unix/Unix.h | |
parent | 27e192196fec42618c7fcbd865e8e0b541545671 (diff) |
Fix a bug in my previous change to this, which broke the build on sparcs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix/Unix.h')
-rw-r--r-- | lib/System/Unix/Unix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Unix/Unix.h b/lib/System/Unix/Unix.h index 75009d0746..2f57b68c8e 100644 --- a/lib/System/Unix/Unix.h +++ b/lib/System/Unix/Unix.h @@ -77,7 +77,7 @@ inline void ThrowErrno(const std::string& prefix) { // Copy the thread un-safe result of strerror into // the buffer as fast as possible to minimize impact // of collision of strerror in multiple threads. - if (Errno) + if (errno) strncpy(buffer,strerror(errno),MAXPATHLEN-1); buffer[MAXPATHLEN-1] = 0; #else |