From: Denys Vlasenko Date: Tue, 17 Aug 2010 15:21:36 +0000 (+0200) Subject: libbb: fix fallout from last patch to obscure() (my mistake). +143 bytes X-Git-Tag: 1_18_0~316 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fd27fa83094a85b3e8cb0485467ffa65b572b923;p=oweals%2Fbusybox.git libbb: fix fallout from last patch to obscure() (my mistake). +143 bytes Signed-off-by: Denys Vlasenko --- diff --git a/libbb/obscure.c b/libbb/obscure.c index 06f00281a..dd8cd319a 100644 --- a/libbb/obscure.c +++ b/libbb/obscure.c @@ -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)