13 lines
354 B
Diff
13 lines
354 B
Diff
--- src/cc/error.h 2018-12-29 15:15:13.042776367 +0100
|
|
+++ - 2018-12-29 15:24:13.933668360 +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); }
|