sick

sign and check files using ed25519
git clone git://z3bra.org/sick
Log | Files | Refs | Submodules | README | LICENSE

commit 0283c9565a52696b5c3129fcb1d5cbf672329e9a
parent 6d05eb404c6e4b43d169c11d9bd0c59303d41e61
Author: z3bra <willyatmailoodotorg>
Date:   Tue Sep 13 23:43:11 +0200

Allow needle at end of haystack

Diffstat:
sick.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sick.c b/sick.c @@ -64,7 +64,7 @@ memstr(const void *h0, size_t k, const char *n0, size_t l) /* Return immediately when needle is longer than haystack */ if (k<l) return 0; - for (i=0; i<(k-l); i++) { + for (i=0; i<=(k-l); i++) { if (memcmp(h+i, n0, l) == 0) return (char *)(h+i); }