Commit 15d1d611 authored by rswindell's avatar rswindell
Browse files

Fix safe_strerror() for GNU builds (must use the return value of strerror_r()).

parent 0a3b9663
......@@ -877,6 +877,8 @@ char* safe_strerror(int errnum, char *buf, size_t buflen)
#if defined(_WIN32)
strerror_s(buf, buflen, errnum);
#elif defined(_GNU_SOURCE)
buf = strerror_r(errnum, buf, buflen);
strerror_r(errnum, buf, buflen);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment