klibc-bot for Herbert Xu
2020-Mar-28 21:49 UTC
[klibc] [klibc:update-dash] dash: Revert "[BUILTIN] Remove unnecessary restoration of format string in printf"
Commit-ID: adac0e3b0075a3754988191cf311c392f41f6005 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=adac0e3b0075a3754988191cf311c392f41f6005 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Sun, 25 Mar 2018 10:33:38 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [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 at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/bltin/printf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/dash/bltin/printf.c b/usr/dash/bltin/printf.c index 9da4ffef..1f1fbde7 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();
Seemingly Similar Threads
- [klibc:update-dash] Revert "[BUILTIN] Remove unnecessary restoration of format string in printf"
- [klibc:update-dash] dash: [BUILTIN] Remove unnecessary restoration of format string in printf
- [klibc:update-dash] [BUILTIN] Remove unnecessary restoration of format string in printf
- [klibc:update-dash] dash: [BUILTIN] Handle embedded NULs correctly in printf
- [klibc:update-dash] [BUILTIN] Handle embedded NULs correctly in printf