summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-31 21:37:09 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-10-31 21:37:09 +0100
commit4605b549d6483116420bc5e5f54d9591f84986a1 (patch)
tree1341d416c6e85953a5b889910c43ec0be5258a97
parent8f6998c902c8f0603c30f9bb927ef30e50426410 (diff)
downloadserenity-4605b549d6483116420bc5e5f54d9591f84986a1.zip
perror() should send output to stderr.
-rw-r--r--LibC/stdio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibC/stdio.cpp b/LibC/stdio.cpp
index 84ecd38190..33175a8e60 100644
--- a/LibC/stdio.cpp
+++ b/LibC/stdio.cpp
@@ -170,7 +170,7 @@ int sprintf(char* buffer, const char* fmt, ...)
void perror(const char* s)
{
- printf("%s: %s\n", s, strerror(errno));
+ fprintf(stderr, "%s: %s\n", s, strerror(errno));
}
FILE* fopen(const char* pathname, const char* mode)