ports/devel/libbobcat/files/patch-exception-errnodescr.cc
Muhammad Moinur Rahman 6e47a493b5 devel/libbobcat: Update version 3.21.01=>3.25.01
- Fix patch files to reflect 'make makepatch'
2015-06-07 11:32:57 +00:00

20 lines
555 B
C++

--- exception/errnodescr.cc.orig 2013-10-01 16:50:34 UTC
+++ exception/errnodescr.cc
@@ -7,16 +7,12 @@ std::ostream &errnodescr(std::ostream &o
{
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;