1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-10 05:49:22 -04:00
ports/devel/libbobcat/files/patch-exception-errnodescr.cc
Gabor Pali 21071c5ef5 - Update to 3.18.01
- Add support for staging, use shebangfix, switch to GCC 4.7
- Give up maintainership
2013-11-28 07:17:03 +00:00

20 lines
562 B
C++

--- exception/errnodescr.cc.orig 2013-10-02 12:36:00.000000000 +0200
+++ exception/errnodescr.cc 2013-11-27 15:02:26.000000000 +0100
@@ -7,16 +7,12 @@
{
if (errno != 0)
{
- char *buffer = new char[Exception::STRERROR_BUFSIZE];
-
- if (char *cp = strerror_r(errno, buffer, Exception::STRERROR_BUFSIZE))
+ if (char *cp = strerror(errno))
out << cp;
else
{
out << "internal error: strerror_r failed with errno = " << errno;
}
-
- delete[] buffer;
}
return out;