diff --git a/src/lib/flags.c b/src/lib/flags.c index ff21ec6..04eb814 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -56,6 +56,8 @@ void setEncryptionSeparator(char encryptionSeparatorNew) void setKeyLength(int keyLengthNew) { + if (keyLengthNew < 1) return; + keyLength = keyLengthNew; }