diff --git a/libc/stdio/perror.c b/libc/stdio/perror.c index f05634ce..c17c9b49 100644 --- a/libc/stdio/perror.c +++ b/libc/stdio/perror.c @@ -2,5 +2,5 @@ #include void perror(const char *s) { - fprintf(stderr, "%s: error %d\n", s, errno); + fprintf(stderr, "%s: %s\n", s, strerror(errno)); }