From 4ba64132b989811d42004754695af8855a0ef5c1 Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 3 Jul 2007 17:26:54 +0000 Subject: [PATCH] John DENKER: validate_format(): handle multiple flags correctly --- src/GUI/dialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 3303b90aa..929f4f8a5 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -37,7 +37,7 @@ validate_format(const char *f) } if (*f++ != '%') return f_INVALID; - if (*f == ' ' || *f == '+' || *f == '-' || *f == '#') + while (*f == ' ' || *f == '+' || *f == '-' || *f == '#' || *f == '0') f++; while (*f && isdigit(*f)) f++; -- 2.39.5