Commit Diff
--- lib/error.c +++ lib/error.c @@ -41,8 +41,9 @@ const struct got_error * got_error_from_errno() { static struct got_error err; + static char msg[1024]; err.code = GOT_ERR_ERRNO; - err.msg = strerror(errno); + strerror_r(errno, msg, sizeof(msg)); return &err; }