bsdiff-portable

A more portable version of Colin Percival's bsdiff
git clone git://git.sgregoratto.me/bsdiff-portable
Log | Files | Refs | README | LICENSE

commit 02dab1e118523bae8a11531e1e1b6149954ff353
parent f30816689feeedcd6b9da46a3cd36a374b32b7fa
Author: Stephen Gregoratto <dev@sgregoratto.me>
Date:   Thu, 24 Sep 2020 16:19:16 +1000

bspatch: fix header length check

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

diff --git a/bspatch.c b/bspatch.c @@ -105,7 +105,7 @@ main(int argc, char **argv) */ /* Read header */ - if (fread(header, 1, 32, f) == 0) { + if (fread(header, 1, 32, f) != 32) { if (feof(f)) errx(1, "Corrupt patch"); err(1, "fread(%s)", argv[3]);