diff options
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 |