diff options
author | Nicholas <nbnoll@eml.cc> | 2021-11-20 11:55:55 -0800 |
---|---|---|
committer | Nicholas <nbnoll@eml.cc> | 2021-11-20 12:34:01 -0800 |
commit | e97c8c469db0aa27985dab2879dc1f14905c7387 (patch) | |
tree | f10f7ed68f1ad5212eebb0985ef040c5e96235ba /src/base/fmt/do.c | |
parent | a9bfe650038afea8b751175cac16f6027345e45f (diff) |
chore: simplify makefiles
Diffstat (limited to 'src/base/fmt/do.c')
-rw-r--r-- | src/base/fmt/do.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/fmt/do.c b/src/base/fmt/do.c index bd2e65c..71b005e 100644 --- a/src/base/fmt/do.c +++ b/src/base/fmt/do.c @@ -363,9 +363,9 @@ fmtstring(fmt·State *io) static int fmterror(fmt·State *io) { - char *s; - s = strerror(errno); - return copystring(io, s); + int c; + c = va_arg(io->args, int); + return copystring(io, sys·errormsg(c)); } static int |