diff options
author | Christian Pointner <equinox@anytun.org> | 2008-05-11 23:39:12 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-05-11 23:39:12 +0000 |
commit | 4cdfe669de129ee2287d6fa7d4f9e170ca04ab2f (patch) | |
tree | 8bee684539b40cf2a14660eaab6493b60fcf11ce /src/PracticalSocket.cpp | |
parent | same security fix for bsd device (diff) |
fixed some thread safety bugs
Diffstat (limited to 'src/PracticalSocket.cpp')
-rw-r--r-- | src/PracticalSocket.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/PracticalSocket.cpp b/src/PracticalSocket.cpp index 6f7b51c..8565878 100644 --- a/src/PracticalSocket.cpp +++ b/src/PracticalSocket.cpp @@ -80,7 +80,9 @@ SocketException::SocketException(const string &message, bool inclSysMsg) throw() : userMessage(message) { if (inclSysMsg) { userMessage.append(": "); - userMessage.append(strerror(errno)); + char buf[NL_TEXTMAX]; + strerror_r(errno, buf, NL_TEXTMAX); + userMessage.append(buf); } } |