From 1bc4a61b1bcf42088864dc567b83014f15a45f64 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 23 Jul 2022 18:34:59 +0200 Subject: [PATCH] preventing any control character from being encryptionSeparator --- src/lib/flags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/flags.c b/src/lib/flags.c index df42e0a..36fc265 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -49,7 +49,7 @@ outputFlags noOutput(_Bool exitCode) //SETTERS void setEncryptionSeparator(char encryptionSeparatorNew) { - if (encryptionSeparatorNew == '\0') return; + if (encryptionSeparatorNew <= 31) return; encryptionSeparator = encryptionSeparatorNew; }