summaryrefslogtreecommitdiff
path: root/LibC
diff options
context:
space:
mode:
Diffstat (limited to 'LibC')
-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)