diff options
-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); |