summaryrefslogtreecommitdiff
path: root/src/PracticalSocket.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-05-11 23:39:12 +0000
committerChristian Pointner <equinox@anytun.org>2008-05-11 23:39:12 +0000
commit4cdfe669de129ee2287d6fa7d4f9e170ca04ab2f (patch)
tree8bee684539b40cf2a14660eaab6493b60fcf11ce /src/PracticalSocket.cpp
parentsame security fix for bsd device (diff)
fixed some thread safety bugs
Diffstat (limited to 'src/PracticalSocket.cpp')
-rw-r--r--src/PracticalSocket.cpp4
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);
}
}