clang-scan reports a couple of minor issues with bsdgrep(1), so pet it. It complains
about usage of strcpy, some cases of sizeof being used in conjunction with malloc and not
using the proper type inside (unsigned int vs. int), and a potential memory leak.
The first two are relatively harmless, but probably technically correct. The memory leak could
have prove problematic given a set of valid patterns and then a pattern that consumed a lot of
memory; ultimately, probably also not a practical concern.
Mentioned by: pfg@