memmem did not handle string size of 1 at all.
Just check for 1 and use a different way of searching.
also, run Lindent

1 file changed