diff --git a/src/lib/misc.c b/src/lib/misc.c index bc2e986..d2c2ff9 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -343,9 +343,9 @@ unsigned long countUnusedKeySize(char *text, char *key) { unsigned long returning = 0; - if (strlen(key) / 2 > strlen(text)) + if (strlen(key) > strlen(text)) { - returning = strlen(key) - 2 * strlen(text); + returning = strlen(key) - strlen(text); } return returning;