preventing any control character from being encryptionSeparator

This commit is contained in:
Václav Šmejkal 2022-07-23 18:34:59 +02:00
parent 3af7e30097
commit 1bc4a61b1b
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -49,7 +49,7 @@ outputFlags noOutput(_Bool exitCode)
//SETTERS
void setEncryptionSeparator(char encryptionSeparatorNew)
{
if (encryptionSeparatorNew == '\0') return;
if (encryptionSeparatorNew <= 31) return;
encryptionSeparator = encryptionSeparatorNew;
}