13 lines
371 B
Diff
13 lines
371 B
Diff
--- a/src/cc/error.h 2018-12-29 15:15:13.042776367 +0100
|
|
+++ b/src/cc/error.h 2018-12-29 15:15:13.042776367 +0100
|
|
@@ -40,7 +40,8 @@
|
|
static inline std::string strerror(const int ec)
|
|
{
|
|
char buf[256];
|
|
- return strerror_r(ec, buf, sizeof(buf));
|
|
+ strerror_r(ec, buf, sizeof(buf));
|
|
+ return buf;
|
|
}
|
|
|
|
static inline std::string strerror() { return strerror(errno); }
|