unfucked the countUnusedKeySize fix

this reverts commit f157b2181074d11268abc543a891898dff1057c8
This commit is contained in:
Václav Šmejkal 2022-08-24 16:04:54 +02:00
parent 3c600c2d78
commit c51002e100
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -343,9 +343,9 @@ unsigned long countUnusedKeySize(char *text, char *key)
{ {
unsigned long returning = 0; 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; return returning;