tInitialize eof to 0 in xread() - safe - password protected secret keeper
 (HTM) git clone git://git.z3bra.org/safe.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit bcafea5b63b34d58cf930d2b6f490457e76a5e2c
 (DIR) parent 45766eca7a2cd4147702b53872b9859048080d2b
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Tue,  4 Jun 2019 16:45:31 +0200
       
       Initialize eof to 0 in xread()
       
       Diffstat:
         M safe.c                              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/safe.c b/safe.c
       t@@ -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;