URI:
       tAllow needle at end of haystack - sick - sign and check files using ed25519
  HTML git clone git://z3bra.org/sick
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 0283c9565a52696b5c3129fcb1d5cbf672329e9a
   DIR parent 6d05eb404c6e4b43d169c11d9bd0c59303d41e61
  HTML Author: z3bra <willyatmailoodotorg>
       Date:   Tue, 13 Sep 2016 23:43:11 +0200
       
       Allow needle at end of haystack
       
       Diffstat:
         M sick.c                              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/sick.c b/sick.c
       t@@ -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);
                }