summaryrefslogtreecommitdiffstats
path: root/src/printf.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-19 18:04:28 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-19 18:04:28 -0400
commit8a74fd3f93ca7f55fd237146d663396fc81f1ac4 (patch)
tree2f4205657f0fdb7a6bd8e2e1f53cb8cb2b0ee100 /src/printf.c
parent079978c185c41a3d21bca22a24df712e35d70354 (diff)
downloadbfs-8a74fd3f93ca7f55fd237146d663396fc81f1ac4.tar.xz
printf: The ' ' (space) flag must be numeric
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printf.c b/src/printf.c
index f8428f7..be09ebd 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -709,9 +709,9 @@ int bfs_printf_parse(const struct bfs_ctx *ctx, struct bfs_expr *expr, const cha
case '#':
case '0':
case '+':
+ case ' ':
must_be_numeric = true;
fallthru;
- case ' ':
case '-':
if (strchr(fmt.str, c)) {
bfs_expr_error(ctx, expr);