diff --git a/stepmania/src/arch/Threads/Threads_Pthreads.cpp b/stepmania/src/arch/Threads/Threads_Pthreads.cpp index c0833b9b60..dec054038c 100644 --- a/stepmania/src/arch/Threads/Threads_Pthreads.cpp +++ b/stepmania/src/arch/Threads/Threads_Pthreads.cpp @@ -43,7 +43,7 @@ int ThreadImpl_Pthreads::Wait() int *val; int ret = pthread_join( thread, (void **) &val ); if( ret ) - RageException::Throw( "pthread_join: %s", strerror(errno) ); + RageException::Throw( "pthread_join: %s", strerror(ret) ); int iRet = *val; delete val;