summaryrefslogtreecommitdiff
path: root/src/stdio/vfwprintf.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-06-13 04:37:27 +0000
committerRich Felker <dalias@aerifal.cx>2015-06-13 04:37:27 +0000
commitf9e25d813860d53cd1e9b6145cc63375d2fe2529 (patch)
treeacc534b9e62c663a90d9c0314a01faed4cc98669 /src/stdio/vfwprintf.c
parentec634aad91f57479ef17525e33ed446c780a61f4 (diff)
downloadmusl-f9e25d813860d53cd1e9b6145cc63375d2fe2529.tar.gz
add %m support to wide printf
Diffstat (limited to 'src/stdio/vfwprintf.c')
-rw-r--r--src/stdio/vfwprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdio/vfwprintf.c b/src/stdio/vfwprintf.c
index ebdff001..281f4e56 100644
--- a/src/stdio/vfwprintf.c
+++ b/src/stdio/vfwprintf.c
@@ -293,6 +293,8 @@ static int wprintf_core(FILE *f, const wchar_t *fmt, va_list *ap, union arg *nl_
if ((fl&LEFT_ADJ)) fprintf(f, "%.*s", w-p, "");
l=w;
continue;
+ case 'm':
+ arg.p = strerror(errno);
case 's':
bs = arg.p;
if (p<0) p = INT_MAX;