diff --git a/plooshfinder/src/plooshfinder.c b/plooshfinder/src/plooshfinder.c index f2d36e4..988b348 100644 --- a/plooshfinder/src/plooshfinder.c +++ b/plooshfinder/src/plooshfinder.c @@ -127,7 +127,7 @@ void *pf_find_zero_buf(void *buf, size_t size, size_t shc_count) { masks[i] = 0xff; } - struct pf_patch_t patch = pf_construct_patch(matches, masks, shc_count / sizeof(uint8_t), (bool (*)(struct pf_patch_t *, void *stream)) pf_set_zero_buf); + struct pf_patch_t patch = pf_construct_patch(matches, masks, ((uint32_t) shc_count) / sizeof(uint8_t), (bool (*)(struct pf_patch_t *, void *stream)) pf_set_zero_buf); struct pf_patch_t patches[] = { patch