summaryrefslogtreecommitdiff
path: root/libc/stdio/vfprintf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/vfprintf.cpp')
-rw-r--r--libc/stdio/vfprintf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/vfprintf.cpp b/libc/stdio/vfprintf.cpp
index 8b247e961..d99d09c86 100644
--- a/libc/stdio/vfprintf.cpp
+++ b/libc/stdio/vfprintf.cpp
@@ -453,7 +453,7 @@ int FUNCTION_NAME(FILE* fp, const CHAR_TYPE* fmt0, va_list ap) {
case 'n':
__fortify_fatal("%%n not allowed on Android");
case 'm':
- cp = strerror(caller_errno);
+ cp = strerror_r(caller_errno, buf, sizeof(buf));
goto string;
case 'O':
flags |= LONGINT;