blocking key of less than 1 character

This commit is contained in:
Václav Šmejkal 2022-07-29 17:19:05 +02:00
parent a3802ae811
commit 85e083ae46
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -56,6 +56,8 @@ void setEncryptionSeparator(char encryptionSeparatorNew)
void setKeyLength(int keyLengthNew)
{
if (keyLengthNew < 1) return;
keyLength = keyLengthNew;
}