mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
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
This commit is contained in:
parent
27e192196f
commit
0798056b28
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user