mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 16:46:50 +00:00
Fix a bug in my previous change to this, which broke the build on sparcs.
llvm-svn: 20184
This commit is contained in:
parent
43b14db4d9
commit
51c55602c9
@ -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