mirror of
https://github.com/angt/secret
synced 2025-01-31 19:57:34 +01:00
Allowing spaces was not a good idea
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
parent
22bca3b102
commit
9c68796f3e
1 changed files with 1 additions and 1 deletions
2
secret.c
2
secret.c
|
@ -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!");
|
||||
|
|
Loading…
Add table
Reference in a new issue