snap: Update pack functions - dedup - deduplicating backup program
 (HTM) git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 2370f812d96bdcae0484b0f4f3041e4d1ab0d07d
 (DIR) parent 03aa3e43c5b81940bab9e6990d71bf036a188f27
 (HTM) Author: sin <sin@2f30.org>
       Date:   Tue,  7 May 2019 21:04:22 +0100
       
       snap: Update pack functions
       
       Diffstat:
         M snap.c                              |       6 ++++--
       
       1 file changed, 4 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/snap.c b/snap.c
       @@ -71,9 +71,10 @@ unpackshdr(int fd, struct shdr *shdr)
                        return -1;
                }
        
       -        n = unpack(buf, "'16'24qq",
       +        n = unpack(buf, "'16'24'24qq",
                           shdr->magic,
                           shdr->nonce,
       +                   shdr->header,
                           &shdr->flags,
                           &shdr->nbd);
        
       @@ -88,9 +89,10 @@ packshdr(int fd, struct shdr *shdr)
                unsigned char buf[SHDRSIZE];
                int n;
        
       -        n = pack(buf, "'16'24qq",
       +        n = pack(buf, "'16'24'24qq",
                         shdr->magic,
                         shdr->nonce,
       +                 shdr->header,
                         shdr->flags,
                         shdr->nbd);