diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-06-13 04:37:27 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-06-13 04:37:27 +0000 |
commit | f9e25d813860d53cd1e9b6145cc63375d2fe2529 (patch) | |
tree | acc534b9e62c663a90d9c0314a01faed4cc98669 | |
parent | ec634aad91f57479ef17525e33ed446c780a61f4 (diff) | |
download | musl-f9e25d813860d53cd1e9b6145cc63375d2fe2529.tar.gz |
add %m support to wide printf
-rw-r--r-- | src/stdio/vfwprintf.c | 2 |
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; |