Closed nishihatapalmer closed 1 year ago
Also adding another commit to avoid a div by zero error if m == n (unlikely, but possible I supposed), and to use memcpy consistently (not memcmp!)
There is another possible edge case where m > n. Max pattern size is bigger than the text buffer. I'll put in a fix for this shortly.