[git commit master 1/1] libbb: fix fallout from last patch to obscure() (my mistake). +143 bytes
Denys Vlasenko
vda.linux at googlemail.com
Tue Aug 17 15:21:36 UTC 2010
commit: http://git.busybox.net/busybox/commit/?id=fd27fa83094a85b3e8cb0485467ffa65b572b923
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
libbb/obscure.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libbb/obscure.c b/libbb/obscure.c
index 06f0028..dd8cd31 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)
--
1.7.1
More information about the busybox-cvs
mailing list