From: mfranz Date: Tue, 3 Jul 2007 17:26:54 +0000 (+0000) Subject: John DENKER: validate_format(): handle multiple flags correctly X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4ba64132b989811d42004754695af8855a0ef5c1;p=flightgear.git John DENKER: validate_format(): handle multiple flags correctly --- 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++;