summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenys Vlasenko2021-07-03 01:59:36 +0200
committerDenys Vlasenko2021-07-03 01:59:36 +0200
commite1e7ad6b6005b2265667040fc9d7f69b73b0d5b0 (patch)
tree441841ff6b122a44a28847d53257710072c6c9dc /editors
parent1f765709ed9c9595647853ac2cd7905f218c3044 (diff)
downloadbusybox-e1e7ad6b6005b2265667040fc9d7f69b73b0d5b0.zip
busybox-e1e7ad6b6005b2265667040fc9d7f69b73b0d5b0.tar.gz
awk: support %F %a %A in printf
function old new delta .rodata 104111 104120 +9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 8c471d6..2c3b49b 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
do { c = *s; } while (c && *++s);
if (strchr("diouxX", c)) {
r = snprintf(b, size, format, (int)n);
- } else if (strchr("eEfgG", c)) {
+ } else if (strchr("eEfFgGaA", c)) {
r = snprintf(b, size, format, n);
} else {
syntax_error(EMSG_INV_FMT);