diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-25 10:33:38 +0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2020-03-28 21:42:54 +0000 |
commit | adac0e3b0075a3754988191cf311c392f41f6005 (patch) | |
tree | 38bac36b42d2791df61f2f2e6c9b41bd7a5f021c | |
parent | e90b159a00304664ddc94fca392146f4bde1bcec (diff) | |
download | klibc-adac0e3b0075a3754988191cf311c392f41f6005.tar.gz |
[klibc] dash: Revert "[BUILTIN] Remove unnecessary restoration of format string in printf"
[ dash commit fcb3864e0e348c206c12b3dae9e734d1efa2029e ]
This reverts commit 7bb413255368e94395237d789f522891093c5774.
The commit breaks printf with more than argument.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | usr/dash/bltin/printf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/dash/bltin/printf.c b/usr/dash/bltin/printf.c index 9da4ffef2e4f2..1f1fbde76f807 100644 --- a/usr/dash/bltin/printf.c +++ b/usr/dash/bltin/printf.c @@ -211,6 +211,7 @@ pc: if (print_escape_str(start, param, array, getstr())) goto out; + *fmt = 'b'; break; case 'c': { int p = getchr(); |