1
0
Fork 0

John DENKER: validate_format(): handle multiple flags correctly

This commit is contained in:
mfranz 2007-07-03 17:26:54 +00:00
parent d1dfc42dce
commit 4ba64132b9

View file

@ -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++;