summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-08-17 15:21:36 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-08-17 15:21:36 (GMT)
commitfd27fa83094a85b3e8cb0485467ffa65b572b923 (patch)
tree0313bf5b2f32813690041825d6e33965be278902
parentd71c770f05079e65b2d27d28ce22b0f08e71a207 (diff)
downloadbusybox-fd27fa83094a85b3e8cb0485467ffa65b572b923.tar.gz
busybox-fd27fa83094a85b3e8cb0485467ffa65b572b923.tar.bz2
libbb: fix fallout from last patch to obscure() (my mistake). +143 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/obscure.c2
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)