aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/obscure.c2
1 files changed, 1 insertions, 1 deletions
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
153 } 153 }
154 154
155 size = CONFIG_PASSWORD_MINLEN + 2*CATEGORIES; 155 size = CONFIG_PASSWORD_MINLEN + 2*CATEGORIES;
156 for (i = 0; i <= LAST_CAT; i <<= 1) 156 for (i = 1; i <= LAST_CAT; i <<= 1)
157 if (mixed & i) 157 if (mixed & i)
158 size -= 2; 158 size -= 2;
159 if (length < size) 159 if (length < size)