Allowing spaces was not a good idea

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët 2020-04-29 08:08:52 +00:00
parent 22bca3b102
commit 9c68796f3e

View file

@ -257,7 +257,7 @@ s_keylen(const char *str)
for (size_t i = 0; i < 256; i++) {
if (!str[i])
return i;
if (str[i] > 0 && str[i] < ' ')
if (str[i] > 0 && str[i] <= ' ')
s_fatal("Malformed key");
}
s_fatal("Key too big!");