From c51002e1008219a25da5cd2146eee3421976d021 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 24 Aug 2022 16:04:54 +0200 Subject: [PATCH] unfucked the countUnusedKeySize fix this reverts commit f157b2181074d11268abc543a891898dff1057c8 --- src/lib/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/misc.c b/src/lib/misc.c index 87a8c74..759e2e6 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) > strlen(text)) + if (strlen(key) / 2 > strlen(text)) { - returning = strlen(key) - strlen(text); + returning = strlen(key) - 2 * strlen(text); } return returning;