fixed countUnusedKeySize result (I hope)

This commit is contained in:
Václav Šmejkal 2022-08-24 16:00:44 +02:00
parent 58333ad132
commit f157b21810
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;
if (strlen(key) / 2 > strlen(text))
if (strlen(key) > strlen(text))
{
returning = strlen(key) - 2 * strlen(text);
returning = strlen(key) - strlen(text);
}
return returning;