cc: getflag() fmt will be terminated at end of loop (from charles forsyth)
This commit is contained in:
parent
651b2a32be
commit
37d2856f55
1 changed files with 1 additions and 1 deletions
|
@ -76,9 +76,9 @@ getflag(char *s)
|
|||
nstar = 0;
|
||||
while(fmt < e){
|
||||
s += chartorune(&c, s);
|
||||
fmt += runetochar(fmt, &c);
|
||||
if(c == 0 || c >= nelem(flagbits))
|
||||
break;
|
||||
fmt += runetochar(fmt, &c);
|
||||
f = flagbits[c];
|
||||
switch(f) {
|
||||
case Fnone:
|
||||
|
|
Loading…
Reference in a new issue