diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-07-03 01:59:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-07-03 01:59:36 +0200 |
commit | e1e7ad6b6005b2265667040fc9d7f69b73b0d5b0 (patch) | |
tree | 441841ff6b122a44a28847d53257710072c6c9dc | |
parent | 1f765709ed9c9595647853ac2cd7905f218c3044 (diff) | |
download | busybox-w32-e1e7ad6b6005b2265667040fc9d7f69b73b0d5b0.tar.gz busybox-w32-e1e7ad6b6005b2265667040fc9d7f69b73b0d5b0.tar.bz2 busybox-w32-e1e7ad6b6005b2265667040fc9d7f69b73b0d5b0.zip |
awk: support %F %a %A in printf
function old new delta
.rodata 104111 104120 +9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | editors/awk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c index 8c471d693..2c3b49bc8 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -909,7 +909,7 @@ static int fmt_num(char *b, int size, const char *format, double n, int int_as_i | |||
909 | do { c = *s; } while (c && *++s); | 909 | do { c = *s; } while (c && *++s); |
910 | if (strchr("diouxX", c)) { | 910 | if (strchr("diouxX", c)) { |
911 | r = snprintf(b, size, format, (int)n); | 911 | r = snprintf(b, size, format, (int)n); |
912 | } else if (strchr("eEfgG", c)) { | 912 | } else if (strchr("eEfFgGaA", c)) { |
913 | r = snprintf(b, size, format, n); | 913 | r = snprintf(b, size, format, n); |
914 | } else { | 914 | } else { |
915 | syntax_error(EMSG_INV_FMT); | 915 | syntax_error(EMSG_INV_FMT); |