simplify got_error_from_errno()
diff --git a/lib/error.c b/lib/error.c
index 6eaa212..4f7f4ab 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -42,11 +42,9 @@ const struct got_error *
got_error_from_errno()
{
static struct got_error err;
- static char msg[1024];
err.code = GOT_ERR_ERRNO;
- strerror_r(errno, msg, sizeof(msg));
- err.msg = msg;
+ err.msg = strerror(errno);
return &err;
}