Error messages: Use strerror() for message formatting.

Refs #6070
This commit is contained in:
Michael Friedrich 2014-06-05 17:45:02 +02:00
parent 1064dc28fc
commit 09ad04b09a
1 changed files with 1 additions and 1 deletions

View File

@ -829,7 +829,7 @@ String Utility::FormatErrorNumber(int code) {
msgbuf << code << ", \"" << result << "\"";
return tmp.str();
#else
msgbuf << gai_strerror(code) << std::endl;
msgbuf << strerror(code);
#endif
return msgbuf.str();
}