Small fixes

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët 2020-05-28 14:58:10 +00:00
parent 01aee5797f
commit 9e35f4afc6
2 changed files with 2 additions and 2 deletions

View file

@ -120,7 +120,7 @@ Subkeys are also supported, this allows to update your secret in a clean way:
Storing binary secrets is supported:
$ dd if=/dev/urandom bs=1 count=32 bs=1 2>/dev/null | secret set mykey
$ dd if=/dev/urandom bs=1 count=32 2>/dev/null | secret set mykey
Passphrase:
Then, use a pipe to get it:

View file

@ -362,7 +362,7 @@ static size_t
s_normalize_and_show(unsigned char *buf, size_t size, size_t want)
{
const unsigned n = 1U + '~' - '!';
unsigned k = 0;
size_t k = 0;
for (size_t i = 0; i < size && k < want; i++) {
if (buf[i] < 2 * n)