safe

Password protected secret keeper
git clone git://git.z3bra.org/safe.git
Log | Files | Refs | README | LICENSE

commit bcafea5b63b34d58cf930d2b6f490457e76a5e2c
parent 45766eca7a2cd4147702b53872b9859048080d2b
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue,  4 Jun 2019 16:45:31 +0200

Initialize eof to 0 in xread()

Diffstat:
safe.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/safe.c b/safe.c @@ -89,7 +89,7 @@ xread(int fd, void *buf, size_t nbytes, int *eof) uint8_t *bp = buf; ssize_t total = 0; - if (eof) *eof = 1; + if (eof) *eof = 0; while (nbytes > 0) { ssize_t n;