libbb: fix fallout from last patch to obscure() (my mistake). +143 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
d71c770f05
commit
fd27fa8309
@ -153,7 +153,7 @@ static const char *obscure_msg(const char *old_p, const char *new_p, const struc
|
||||
}
|
||||
|
||||
size = CONFIG_PASSWORD_MINLEN + 2*CATEGORIES;
|
||||
for (i = 0; i <= LAST_CAT; i <<= 1)
|
||||
for (i = 1; i <= LAST_CAT; i <<= 1)
|
||||
if (mixed & i)
|
||||
size -= 2;
|
||||
if (length < size)
|
||||
|
Loading…
Reference in New Issue
Block a user